Home > Syntax Error > Syntax Error ( Unexpected Ubuntu

Syntax Error ( Unexpected Ubuntu

Contents

vBulletin 2000 - 2016, Jelsoft Enterprises Ltd. Debian bug tracking system administrator . Where are sudo's insults stored? I checked Google and everything said to use #!/bin/bash The problem is, I was using that all along..... navigate here

Thanks! –hookedonwinter Jan 30 '13 at 19:19 add a comment| up vote 1 down vote There are 2 different shells at work here. /bin/sh is the POSIX shell (syntax based on 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. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged Please don't send help request via PM, unless I am already helping you. http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected

Syntax Error ( Unexpected Ubuntu

If I have been helping you and haven't replied in 2 days, feel free to shoot me a PM! Edited by ifunction, 21 January 2016 - 10:29 AM. I use zsh and Code::Blocks' uses sh. User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License.

Back to top #4 myrti myrti Sillyberry Malware Study Hall Admin 33,474 posts OFFLINE Gender:Female Location:At home Local time:11:54 AM Posted 21 January 2016 - 10:30 AM Hi, how Those are all makefile variables that get substituted before running the shell. –Barmar Jul 30 '13 at 10:44 10 add missing $ to (STAGING_DIR) in the CXXFLAGS –J.F. Already have an account? Ksh Syntax Error Unexpected command: dos2unix script_file.sh script_file.sh share|improve this answer edited Apr 24 '15 at 5:31 muru 18.5k33267 answered Apr 24 '15 at 5:26 M Sarfraz 1 add a comment| up vote -1 down

I ran one of my old scripts and all was fine. ii gcc-2.95 [c-compiler] 1:2.95.4-17 The GNU C compiler. Thanks a lot in advance. What could make an area of land be accessible only at certain times of the year?

git commit -am "automated push $(date +"%Y-%m-%d")" git push -u } cd ~/htdocs automate And the crontab line to: * * * * * /bin/bash /home/hookedonwinter/bin/auto_git_push.sh shell crontab share|improve this question Line 1: Syntax Error: Unexpected Word (expecting ")") Since you use bash features, the first line of the file must be #!/bin/bash or #!/usr/bin/env bash. It can usually be replaced by: if [ something ]; then I still prefer to keep dash as default shell and change the 1st lines of scripts or run some of Help us fight Enigma Software's lawsuit! (more information in the link)Follow BleepingComputer on: Facebook | Twitter | Google+ Back to top #5 ifunction ifunction Topic Starter Members 4 posts OFFLINE

Syntax Error At Line 1 (' Unexpected In Shell Script

Acknowledgement sent to Jan Wagemakers : New Bug report received and forwarded. http://www.linuxquestions.org/questions/programming-9/bin-sh-syntax-error-unexpected-906697/ Please don't send help request via PM, unless I am already helping you. Syntax Error ( Unexpected Ubuntu nothing has changed! Sh: 1: Syntax Error: "(" Unexpected Python For details and our forum data attribution, retention and privacy policy, see here Latest LQ Deal: Linux Power User Bundle Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs

How does a Spatial Reference System like WGS84 have an elipsoid and a geoid? check over here I guess I'll have to read up on dash, bash and sh to understand the difference between the different shells. No further changes may be made. Uploading a preprint with wrong proofs What version of Python do I have Ubuntu 16.04? Syntax Error ( Unexpected Bash Array

Can I stop this homebrewed Lucky Coin ability from being exploited? What does the pill-shaped 'X' mean in electrical schematics? Then ensure that the it is indeed installed, and if not, install it. his comment is here Gender roles for a jungle treehouse culture Why did Fudge and the Weasleys come to the Leaky Cauldron in the PoA?

Install RGBDSLAM on ARM Problem in ROS Qt Node ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike Syntax Error Word Unexpected (expecting ) ) Shell Script If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. By "from the PPA" I mean I added packages.ros.org as a repository and most of ROS is installed that way.

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

Full text and rfc822 format available. You are currently viewing LQ as a guest. Also because I get the errors before any commands are executed when issuing a gmake -n: # gmake -n /bin/sh: syntax error: `(' unexpected /bin/sh: syntax error: `(' unexpected /bin/sh: syntax Syntax Error At Line 1 (' Unexpected Solaris This is the C++ site I'm using to learn C++.

Closes: 204797 Changes: kernel-package (8.045) unstable; urgency=low . * Fix missing double quotes in the rules file. Changed the header as said. Not the answer you're looking for? http://edvinfo.com/syntax-error/syntax-error-word-unexpected-expecting-shell-script.html gmake[1]: Entering directory `/usr/ports/myports/1.3/w-jdk-1.3.1/j2sdk1.3.1/make/java' I've tried various make options to get more information, but nothing useful is returned.