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

Bin/sh 1 Syntax Error Unexpected Expecting


Only got the error message when I separated the commands: $ sudo sh # ./install hope it helps share|improve this answer answered Nov 27 '15 at 22:00 user145114 1 Why are some programming languages Turing complete but lack some abilities of other languages? American English: are [ə] and [ʌ] different phonemes? For details and our forum data attribution, retention and privacy policy, see here Ubuntu Forums > The Ubuntu Forum Community > Ubuntu Specialised Support > Development & Programming > Programming Talk http://sovidi.com/syntax-error/1-syntax-error-unexpected-expecting.php

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 maybe dash create it by default if bash it's not installed) You can rm the symlink and install bash: sudo rm /bin/bash sudo apt-get install bash hth madams11August 2nd, 2008, 08:20 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 The time now is 06:00 AM.

Bin Sh C Line 1 Syntax Error Unexpected End Of File

I can't find the actual bash shell anywhere. Ksh used to be limited to 4096 elements in an array, but versions for the last few years have, like bash, been limited only by available memory. Remove I just wish Ubuntu would join in with the industry standard way of doing things. the (inexistent) problem is the 1st line in combination with Ubuntu.

dwhitney67August 2nd, 2008, 06:28 AMThat's just masking the problem, so I think it's a bad idea. 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. How to pluralize "State of the Union" without an additional noun? Syntax Error Word Unexpected (expecting ) ) Shell Script The Woz Monitor What aircraft would have these tail numbers?

Not that this example makes much difference performance wise. The package manager is supposed to force you to jump through hoops to remove either one, because the absence of one or the other can cause major problems. line is indented with a TAB as the first character on that line). Mark Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc.

period! Line 1 Syntax Error Word Unexpected Expecting Dec 14 '15 at 8:32 This question has been asked before and already has an answer. So, either you run: bash regenerate-makefiles.sh or replace first line with: #!/bin/bash (or even remove the 1st line and environment will call it with bash) or (losing generality) adapt it for I didn't notice anything until I was running a script with #!/bin/sh which actually meant /bin/bash.

Syntax Error Unexpected Expecting Keyword_end

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: 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 I sent the script to by brother........ Syntax Error Unexpected Expecting End Syntaxerror Ubuntu Logo, Ubuntu and Canonical Canonical Ltd.

Ksh88 was limited to 1023 elements, but I don't think it accepted that syntax for assigning a number of elements to an array. More about the author The time now is 12:00 PM. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. So I started experimenting by removing all the sudo lines and running the whole script via sudo at the command line like so: [email protected]:~$ sudo ./pi_dev_env_install.sh This works fine as expected Ruby Syntax Error Unexpected Expecting

sh run_all_verification.sh? Browse other questions tagged bash shell ubuntu shell-script or ask your own question. if you put #!/bin/bash it will run with bash, if you put #!/bin/sh it will run with dash, unless you changed /bin/sh link from dash to bash (or other) reality1011June 15th, check my blog For me, the Ubuntu OS is mere curiosity.

A lot of people had problem, specially with custom scripts. Syntax Error Unexpected In Shell Script Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. bash run_all_verification.sh? –Etan Reisner Mar 26 '15 at 19:53 add a comment| 1 Answer 1 active oldest votes up vote 6 down vote accepted Your error message is from dash, probably

Is any necessary and sufficient criteria for a topological space to be compact using continuous functions?

I had the wrong file name –Adam_G Mar 26 '15 at 20:12 You can give yourself permission to execute your file with chmod +x yourfile. In either bash or ksh93, simply assigning it is enough: Code: lyrics=( $( tr '\n' ' ' < _open.txt ) ) Note that you do not need tr; the shell will 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 try this Code: #bash: declare -a lyrics=$( Syntax Error Word Unexpected (expecting ) ) Ubuntu Adv Reply Page 1 of 2 12 Last Jump to page: Quick Navigation Programming Talk Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums The

The code looks ugly with a lack of indentation, but it fixes this issue. –DevNull Apr 20 at 16:42 You can use spaces before ifeq or other Makefile statements. I ran one of my old scripts and all was fine. I already have automake (GNU automake 1.9.6) and aclocal (GNU automake 1.9.6). http://sovidi.com/syntax-error/bin-sh-1-syntax-error-word-unexpected-expecting.php Then, when I rm bash, which is just a symlink, and then install, I get this: apt-get install bash ...

I guess I'll have to read up on dash, bash and sh to understand the difference between the different shells. Here is a part of my script, Code: if [ -f file1.jar ]; then echo "Found: file 1.jar" else echo "file1.jar: Missing " Down if [ -f file2.zip ]; then echo If I use a script written by a third-party, there is no way I am going edit the file to call out /bin/bash in lieu of /bin/sh. asked 1 year ago viewed 4476 times active 1 year ago Linked 3 I am getting error “array.sh: 3: array.sh: Syntax error: ”(“ unexpected” 1 `Syntax error: “(” unexpected` when trying

But still clueless as to What this error is and How to solve it. Is my workplace warning for texting my boss's private phone at night justified? Several possible fixes: Reinstall bash: sudo aptitude reinstall bash Upgrade to Hardy Download the bash source package, bump the version number, build the package, and install it. Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest

but dash is much more different. Setting the paths is only for Mac OSX users, so I didn't try to set any of those paths. 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. 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()

It says it is installed, but I still can't find it.