Home > Syntax Error > Bin/sh Syntax Error Word Unexpected

Bin/sh Syntax Error Word Unexpected

Contents

American English: are [ə] and [ʌ] different phonemes? add a comment| 3 Answers 3 active oldest votes up vote 1 down vote accepted An answer to this seems to be posted in the instructions to which you linked. Anyway, likely this could be the issue in the script. But the case statement will anyway interpret it as string. this content

Multiplication by One Natural construction How to handle spending money for extended trip to Europe? but it yields the same error message. Unix & Linux Stack Exchange works best with JavaScript enabled current community chat Unix & Linux Unix & Linux Meta your communities Sign up or log in to customize your list. I still have to manually edit some files for use plugins on TeXmacs editor, and they are the officially supported ones It was by then very common to replace that symlink

Bin Sh 1 Syntax Error Unexpected

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed for example in ksh, you do not need the function key word... But you could indent 4 spaces or something like that. –MadScientist Apr 20 at 21:51 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign

See my comment for explanation. –anishsane Jun 16 at 15:00 Same error happening... –pedro.olimpio Jun 16 at 15:05 1 Quoting isn't necessary in that position in a case share|improve this answer answered Jan 20 '14 at 5:43 MadScientist 26.7k32238 1 Thanks MadScientist it really helped........... –Chirag Parekh Jan 20 '14 at 11:51 I just encountered this. You could run dpkg-reconfigure dash and tell the system not to use dash for sh (but bash instead) to see if that helps. Syntax Error Word Unexpected (expecting ) ) Shell Script Make up your mind.

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 Bin Sh C Line 0 Syntax Error Near Unexpected Token command: dos2unix script_file.sh script_file.sh share|improve this answer edited Apr 24 '15 at 5:31 muru 17.9k33165 answered Apr 24 '15 at 5:26 M Sarfraz 1 add a comment| up vote -1 down When dash reaches line 68, it sees a syntax error: that parenthesis doesn't mean anything to it in context. Thanks a lot!

share|improve this answer edited Jun 16 at 15:02 anishsane 10.8k21849 answered Jun 16 at 14:56 Jonathan King 1142 1 This is not called casting to string. Line 1 Syntax Error Word Unexpected Expecting LinuxQuestions.org > Forums > Non-*NIX Forums > Programming [SOLVED] /bin/sh: Syntax error: "(" unexpected User Name Remember Me? Yet most shells only parse the number before the operator as a file descriptor if it consists of a single digit. Still getting the error. –soufrk Sep 1 at 6:58 @soufrk Is it sonarqube.sh or sonar.sh?

Bin Sh C Line 0 Syntax Error Near Unexpected Token

We recommend upgrading to the latest Safari, Google Chrome, or Firefox. Read More NEWS   14 Jan 2016 CES 2016 Read More NEWS   12 Jan 2016 How NFC is taking mobile payments in bold new directions Read More NEWS   12 Jan 2016 NXP Bin Sh 1 Syntax Error Unexpected Join them; it only takes a minute: Sign up Syntax error: word unexpected (expecting “)”)? Bin Sh C Line 1 Syntax Error Unexpected End Of File share|improve this answer edited Nov 8 '14 at 22:02 mikeserv 37k341109 answered Nov 8 '14 at 20:32 terdon♦ 86.1k16143250 @mikeserv yes indeed, that makes much more sense.

Problem in details- I have been trying to cross-compile Qt-4.6 as per Sourcery tool chain on Ubuntu 10.04. news Thanks a lot in advance. 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. I followed the exact steps mentioned at the link compiling Qt-4.6. Syntax Error Word Unexpected (expecting Do )

The script is linked in that article but convenience you can find it here also. I ran one of my old scripts and all was fine. Thanks for the explanation it's helped a lot and will be very useful to know in the future too. –kemra102 Aug 18 '12 at 12:25 Let me add that http://sovidi.com/syntax-error/bin-sh-1-syntax-error-word-unexpected-expecting.php How to indicate you are going straight?

Why? Syntax Error Word Unexpected (expecting ) ) Ubuntu nothing has changed! Password Programming This forum is for all programming questions.

P.S 2- This toolchain was not installed manually by me.

WaRP 7 Read More NEWS   10 Nov 2015 7 playful uses for NFC in gaming Read More NEWS   6 Nov 2015 Meet an NFC innovator: Speech Code Read More NEWS   5 How does Gandalf get informed of Bilbo's 111st birthday party? You have two options to make sure the script is interpreted by bash: Move the shebang to the first line Run sudo like this: sudo bash ./pi_dev_env_install.sh share|improve this answer answered Python Syntax Error: Word Unexpected (expecting ")") Terms Privacy Security Status Help You can't perform that action at this time.

The following demonstrates this, and works with all major POSIX-like shells (dash, bash, ksh, zsh): $ sh -c 'case $1 in "foo *") echo "match";; *) echo "nomatch"; esac' - 'foo Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 200 Star 1,402 Fork 501 zaphoyd/websocketpp Code Issues 114 Pull requests 24 Projects 0 Do you want to help us debug the posting issues ? < is the place to report it, thanks ! http://sovidi.com/syntax-error/bin-sh-syntax-error-word-unexpected-expecting.php Sometimes you go crazy debugging these Adv Reply August 2nd, 2008 #9 madams11 View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jan 2007 Location KC,

line is indented with a TAB as the first character on that line). I checked Google and everything said to use #!/bin/bash The problem is, I was using that all along..... Join them; it only takes a minute: Sign up SH linux: Syntax error: word unexpected up vote 3 down vote favorite I want know what am I doing wrong in this share|improve this answer answered Apr 19 at 16:33 roaima 270212 Thanks a ton Roaima for pointing this out.

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 ksh limits the number of elements in an array to 1023. Not the answer you're looking for? How does Coruscant get food?

Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk running sh-script, resulting in If you need to reset your password, click here. Dennis numbers 2.0 How can I pull a wire through a pipe that has too many turns for fish tape? So, change all three instances of 200 in your script to 5: #!/bin/sh case "$IFACE" in lo) # The loopback interface does not count. # only run when some other interface

ksh limits the number of elements in an array to 1023. Why did companions have such high social standing? works fine!