Home > Syntax Error > Bin/sh 1 Syntax Error Unexpected Expecting

Bin/sh 1 Syntax Error Unexpected Expecting

Contents

What sounds more likely is that that qmake file is not a script, but a binary executable that is not recognised as such by the system, for instance because it is Search this Thread 08-22-2011, 05:52 AM #1 me011089 LQ Newbie Registered: Jun 2011 Posts: 16 Rep: line 1: syntax error: word unexpected (expecting ")") Hi,I was working with beagle What is the sh -c command? share|improve this answer edited Apr 20 at 8:54 answered Apr 19 at 14:10 Stephane Chazelas 2,3551021 add a comment| up vote 0 down vote 99% it is a wrong filetransfer /ascii check my blog

Is there a way to make a metal sword resistant to lava? Why Gimbal Only Inner Cluster? Ksh88 was limited to 1023 elements, but I don't think it accepted that syntax for assigning a number of elements to an array. the (inexistent) problem is the 1st line in combination with Ubuntu.

Bin Sh C Line 1 Syntax Error Unexpected End Of File

Why don't most major game engines use gifs for animated textures? Rui PaisJune 13th, 2008, 10:12 PMWhat if my first line says: #!/bin/bash? Also Same Problem Error Changed after doing some editing, its " ./installer.sh: 24: Syntax error: "else" unexpected (expecting "}") " the from the start to line 24 is Code: #!/bin/sh pause() Having a problem logging in?

Still getting the error. –soufrk Sep 1 at 6:58 @soufrk Is it sonarqube.sh or sonar.sh? I had read this comment but somehow had assumed that it was a PATH error, so ignored it. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Syntax Error Word Unexpected (expecting ) ) Shell Script Unless this is a massive system operation running in an environment where you need to limit process resource usage as much as possible, code obfuscation in an attempt to gain performance

Adding the shebang line solved it immediately. +1. –bkd.online Oct 9 '13 at 5:14 Facing the issue running sonarqube.sh on Ubuntu 15.10. Syntax Error Unexpected Expecting Keyword_end In that case, when the system fails to recognise it as a native executable, the invoking application would try to run sh on it as if it was a shell script, Ubuntu, since Edgy, replaced old sh with dash, creating a series of incompatibilities in a lot of scripts... What type of sequences are escape sequences starting with "\033]" Intuition behind Harmonic Analysis in Analytic Number Theory What are the holes on the sides of a computer case frame for?

What gives? -OG- Adv Reply June 11th, 2008 #6 WeyOh View Profile View Forum Posts Private Message 5 Cups of Ubuntu Join Date May 2007 Location Luxembourg Beans 33 DistroUbuntu Line 1 Syntax Error Word Unexpected Expecting Find all posts by cfajohnson #4 03-05-2009 figaro Registered User Join Date: Jan 2007 Last Activity: 27 August 2016, 2:57 PM EDT Posts: 842 Thanks: 93 Thanked 29 Why would an artificial planet inhabited by machines have seasons? Why Gimbal Only Inner Cluster?

Syntax Error Unexpected Expecting Keyword_end

I still get this error, pointing to the line that begins arrIN=... 8: run_all_verification.sh: Syntax error: "(" unexpected (expecting "done") The shell script: #!/usr/bin/bash #base name for all experiments BASE_EXP_ID=$1; for Below is the first lines in the script, line 13 in red. #!/bin/sh # NOTE: # Versions 1.9 (or higher) of aclocal and automake are required. # For Mac OSX users: Bin Sh C Line 1 Syntax Error Unexpected End Of File That's just masking the problem, so I think it's a bad idea. Syntax Error Unexpected Expecting End Syntaxerror Thanks for any help, Stig Adv Reply July 12th, 2007 #2 Rui Pais View Profile View Forum Posts I Ubuntu, Therefore, I Am Join Date Oct 2004 Beans 2,324 Re:

Now when run this script install and sets up the environment without error but you have to enter your sudo password more than once due to sudo's time-out value by default. click site Any tips on what to do next? So, either you run: Code: bash regenerate-makefiles.sh or replace first line with: Code: #!/bin/bash (or even remove the 1st line and environment will call it with bash) or (losing generality) adapt This makes me think that bash might be installed somewhere else, but I sure can't find it. Ruby Syntax Error Unexpected Expecting

more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Adv Reply August 23rd, 2007 #5 OldGaf View Profile View Forum Posts Private Message Way Too Much Ubuntu Join Date Aug 2005 Location Canada Beans 259 DistroKubuntu 11.04 Natty Narwhal Is any necessary and sufficient criteria for a topological space to be compact using continuous functions? news On my system, I removed the /bin/sh link to dash, and changed it to point to /bin/bash.

Since you're using an outdated and no longer maintained OS, it's also possible that you're running into a bug in that version of dash. Syntax Error Unexpected In Shell Script Here are the results: dpkg -S /bin/bash bash: /bin/bash Since bash is acually a link to dash, I'm not sure what this is telling me. That's not right; ifeq is a make command. (Almost) all lines with TAB characters as the first character on the line in a makefile is passed to the shell.

And, I can't seem to install bash.

User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. share|improve this answer answered Apr 19 at 16:33 roaima 270212 Thanks a ton Roaima for pointing this out. Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. Syntax Error Word Unexpected (expecting ) ) Ubuntu I guess I'll have to read up on dash, bash and sh to understand the difference between the different shells.

I already have automake (GNU automake 1.9.6) and aclocal (GNU automake 1.9.6). American English: are [ə] and [ʌ] different phonemes? Please visit this page to clear all LQ-related cookies. More about the author for example in ksh, you do not need the function key word...

same damn error. Join Date: Feb 2004 Last Activity: 1 October 2016, 1:25 PM EDT Location: NM Posts: 10,825 Thanks: 446 Thanked 968 Times in 899 Posts Chris - With regard to arrays - cnxsoft View Public Profile View LQ Blog View Review Entries View HCL Entries Visit cnxsoft's homepage! Why don't most major game engines use gifs for animated textures?

Below example works just fine Code: #!/bin/bash if [ -f file ] then echo line1 echo line2 else echo line3 fi Last edited by Vaphell; March 9th, 2011 at 02:00 PM. See 'Code Complete' by Steve McConnell 2nd Ed. works fine! How was this bridge burning and collapsing scene filmed in Buster Keaton's The General?