Home > Syntax Error > Sh 1 Syntax Error Word Unexpected
Sh 1 Syntax Error Word Unexpected
Tango Icons © Tango Desktop Project. Reload to refresh your session. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Change the first line from #!/bin/sh to #!/bin/bash The script should then work as expected. over here
Line 1 Syntax Error Word Unexpected Expecting
The time now is 10:25 AM. Small Diwali gifts, from an overseas visitor in India during the festive period? But I get the following error right in the ./configure step - /home/weds/qt-everywhere-opensource-src-4.6.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")") Searching in internet I found lots of posts regarding this error.
This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. 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
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 Emulator Syntax Error Word Unexpected Expecting Why is the bridge on smaller spacecraft at the front but not in bigger vessel?
The time now is 04:25 PM. Syntax Error Word Unexpected (expecting ) ) Android Browse other questions tagged linux bash ubuntu ubuntu-14.04 sh or ask your own question. Problem in details- I have been trying to cross-compile Qt-4.6 as per Sourcery tool chain on Ubuntu 10.04. 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
Syntax Error Word Unexpected (expecting ) ) Shell Script
But I again re read after you pointed it out and bingo, that was the problem :) But now I am getting another problem, I am posting that as a new page 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 Line 1 Syntax Error Word Unexpected Expecting Before server side scripting how were HTML forms interpreted The Rule of Thumb for Title Capitalization What are the difficulties of landing on an upslope runway What is the meaning of Syntax Error Word Unexpected (expecting ) ) Makefile Thus, in practice, you can only use single-digit file descriptors in shell scripts.
Disproving Euler proposition by brute force in C A movie about the wife taking revenge from his husband and his mistress Which kind of "ball" was Anna expecting for the ballroom? http://ipodcorrectors.com/syntax-error/shell-script-syntax-error-fi-unexpected.php Alphabet Diamond Why does Fleur say "zey, ze" instead of "they, the" in Harry Potter? 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 Anyway, likely this could be the issue in the script. Syntax Error Word Unexpected (expecting ) ) Ubuntu
Abstract definition of convex set Is the ritual of killing an animal as offering to Maa Kali correct? Yes, syntactically, you are correct. You are limited by virtual memory on your machine. http://ipodcorrectors.com/syntax-error/sh-1-syntax-error-unexpected.php Another possibility is that that script you're trying to run has been written on the assumption that sh was bash and uses constructs that are not portable to other sh implementations.
On my system: $Â dash /bin/touch /bin/touch: 1: /bin/touch: Syntax error: word unexpected (expecting ")") And if you look at the content of /bin/touch as if it were a script, you see: Syntax Error: Word Unexpected (expecting ")") Bash A movie about the wife taking revenge from his husband and his mistress DDoS: Why not block originating IP addresses? Sign up for free to join this conversation on GitHub.
I tried with bash and it worked fine so just use bash instead.
Since dash (like all other shells) is an interpreter, it won't complain until the execution reaches the problematic line. 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 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 ")") Not the answer you're looking for?
The time now is 11:25 AM. - Contact Us - UNIX & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top I had read this comment but somehow had assumed that it was a PATH error, so ignored it. This site is not affiliated with Linus Torvalds or The Open Group in any way. have a peek here command: dos2unix script_file.sh script_file.sh share|improve this answer edited Apr 24 '15 at 5:31 muru 18.7k33367 answered Apr 24 '15 at 5:26 M Sarfraz 1 add a comment| up vote -1 down
Are illegal immigrants more likely to commit crimes? Automata for empty language Does the Iron Man movie ever establish a convincing motive for the main villain? Having a problem logging in? Accidentally modified .bashrc and now I cant login despite entering password correctly Approximation of the Gamma function for small value Why are my prints low quality when screenshotting a PDF?
Join Date Aug 2009 Location Makati City, Philippines Beans 2,270 DistroXubuntu 16.04 Xenial Xerus Re: BASH problem Word unexpected (expecting ")") Don't run it with sh or bash since the file What to do with my pre-teen daughter who has been out of control since a severe accident? When dash reaches line 68, it sees a syntax error: that parenthesis doesn't mean anything to it in context. Registration is quick, simple and absolutely free.
While unquoted parameter/variable references are word-split and pathname-expanded in most places in POSIX-like shells, case is a curious exception. Descriptors 0, 1 and 2 have a standard meaning; descriptors 3â€“9 can be used freely. Remove advertisements Sponsored Links jim mcnamara View Public Profile Find all posts by jim mcnamara
Page 1 of 2 1 2 > « Previous Thread | Next Thread » Thread share|improve this answer answered Apr 19 at 16:33 roaima 271212 Thanks a ton Roaima for pointing this out.
It's possible it was not written for the shell in your beagleboard. Project Euler #4 : Largest palindrome from product of two n-digit numbers in python Equivalent for "Crowd" in the context of machines The Rule of Thumb for Title Capitalization Why is For example, according to the POSIX specification, echo 10>a should either redirect file descriptor 10 to a and create an empty file, or error out because the shell doesn't support 10 asked 1 year ago viewed 1377 times active 1 year ago Related 4Do redirection operators always open file descriptors in parallel?0Capture Error of LS to file2syntax error: unexpected end of file9Unexpected