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

Bin/sh Syntax Error Word Unexpected Expecting

Contents

The time now is 06:05 AM. - Contact Us - Unix & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top For example, by default Debian uses dash for /bin/sh. Not that this example makes much difference performance wise. Admittedly it's a long way down in the comments but it didn't take long to search for qmake: Syntax error: word unexpected. http://sovidi.com/syntax-error/bin-sh-1-syntax-error-word-unexpected-expecting.php

Quote: Tej says: January 4, 2013 at 12:20 pm Ok, I have solved the Problem. Show Vinod Kumar Vavilapalli added a comment - 28/Sep/15 21:06 Dropping fix-version from 'non-fixed' (didn't have code-fixes) JIRAs. Just for curiosity: Do you really need root privileges to delete the files? (Is the use of "sudo" necessary, it seems strange, and dangerous). How to indicate you are going straight?

Bin Sh 1 Syntax Error Unexpected

Regards Activity Ascending order - Click to sort in descending order All Comments Work Log History Activity Transitions Hide Permalink Andy Isaacson added a comment - 24/May/12 20:45 That failure would Now, that leaves me puzzled. –soufrk Sep 1 at 7:07 add a comment| up vote 3 down vote If the shebang is not on the first line, it will not be This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. Terms Privacy Security Status Help You can't perform that action at this time.

The question does not have to be directly related to Linux and any language is fair game. The Woz Monitor Why can a Gnome grapple a Goliath? A simple visual puzzle to die for How would family relationships change if legal system uses collective punishment? Syntax Error Word Unexpected (expecting ) ) Ubuntu 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

So _open.txt has to have less than 1024 "words" in it. Remove advertisements Sponsored Links jim mcnamara View Public Profile Find all posts by jim mcnamara

Line 1 Syntax Error Word Unexpected Expecting 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=$( Find More Posts by cnxsoft 08-23-2011, 04:35 AM #4 me011089 LQ Newbie Registered: Jun 2011 Posts: 16 Original Poster Rep: Thanks for your suggestion, I cross compiled my code but it yields the same error message.

However I disagree that the code looks "ugly"; in fact it's extremely misleading to indent makefile statements to the same level as recipe lines; it implies they are shell commands when Syntax Error Word Unexpected (expecting ) ) Android There is nothing about this line running as sudo that should stop it working to my knowledge, does anyone have any ideas? Inverted question mark, plus its gender Why are some programming languages Turing complete but lack some abilities of other languages? Here that's unlikely as your error reports the problem being on the first line of the script and most scripts start with the #! /path/to/interpreter she-bang line.

Line 1 Syntax Error Word Unexpected Expecting

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. Code: a=$( < war_and_peace.txt) You could put a whole book into a bash variable or an array. Bin Sh 1 Syntax Error Unexpected I can still move the shebang of course, but that doesn't really explain as to why it works when you don’t sudo the whole script. –kemra102 Aug 18 '12 at 11:50 Syntax Error Word Unexpected (expecting Do ) Just put it inside [code] and [/code] tags Adv Reply April 21st, 2009 #4 rohandeshmukh View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Apr 2009

Find all posts by cfajohnson #7 03-05-2009 jim mcnamara [email protected] news When taking passengers, what should I do to prepare them? Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Sign up for free to join this conversation on GitHub. Syntax Error Word Unexpected (expecting ) ) Shell Script

Join our community today! Why are some programming languages Turing complete but lack some abilities of other languages? up vote 5 down vote favorite 2 PLATFORM = x86 CUD = cuda X86 = x86 PAN = panda ARM = arm app: ifeq($(PLATFORM),$(CUD)) CC = dum3 endif ifeq($(PLATFORM), $(X86)) CC have a peek at these guys Adv Reply April 21st, 2009 #5 mister_pink View Profile View Forum Posts Private Message Quad Shot of Ubuntu Join Date Oct 2007 Beans 441 Re: Syntax error: word unexpected (expecting

There is a concept: self-documenting code. Python Syntax Error: Word Unexpected (expecting ")") But still the error occurs. vBulletin ©2000 - 2016, Jelsoft Enterprises Ltd.

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

I have tried changing the "/bin/sh" to "/bin/bash" in some the scripts present in source tree. Is any necessary and sufficient criteria for a topological space to be compact using continuous functions? How could banks with multiple branches work in a world without quick communication? Emulator Syntax Error Word Unexpected Expecting Will appreciate any help in resolving this.

Try JIRA - bug tracking software for your team. Its ok here but helps for longer snippets. Simply because you can NOT do something and have it work doesn't necessarily mean it is a great idea. http://sovidi.com/syntax-error/bin-sh-syntax-error-word-unexpected.php Sometimes some hidden characters are there in the source.

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. See 'Code Complete' by Steve McConnell 2nd Ed. Least Common Multiple Equation goes outside the boundary with eqnarray environment! share|improve this answer answered Aug 18 '12 at 12:08 Gilles 369k666681119 1 Thanks clearly a gap in my knowledge, I don't script much so wasn't aware of that!

If you need to reset your password, click here. Browse other questions tagged makefile or ask your own question. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started Please explain the local library system in London, England Inverted question mark, plus its gender Finding a file starting with '-' dash When taking passengers, what should I do to prepare

Not the answer you're looking for? Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. 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