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

Bin/sh Syntax Error Word Unexpected

Contents

Since you use bash features, the first line of the file must be #!/bin/bash or #!/usr/bin/env bash. Manoj manojrb18 View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by manojrb18 10-06-2011, 03:45 AM #2 manojrb18 LQ Newbie Registered: Oct P.S 2- This toolchain was not installed manually by me. 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. this content

Stig Adv Reply July 12th, 2007 #4 Rui Pais View Profile View Forum Posts I Ubuntu, Therefore, I Am Join Date Oct 2004 Beans 2,324 Re: running sh-script, resulting in Due to Ubuntu's DashAsBinSh affinity I suspect your script is interpreted by dash instead of bash. On THE other hand or on another hand? I followed the exact steps mentioned at the link compiling Qt-4.6.

Bin Sh 1 Syntax Error Unexpected

but dash is much more different. Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs Home Forums HCL Reviews Tutorials Articles Register Search Search Forums Advanced Search Search Tags Search LQ Wiki Search Tutorials/Articles Search How can I pull a wire through a pipe that has too many turns for fish tape? Not the answer you're looking for?

for example in ksh, you do not need the function key word... I had read this comment but somehow had assumed that it was a PATH error, so ignored it. This is called quoting. Syntax Error Word Unexpected (expecting ) ) Shell Script What to tell to a rejected candidate?

nikkitan commented Mar 6, 2012 I saw the same error in policy-refactor too. Bin Sh C Line 0 Syntax Error Near Unexpected Token How do I deal with players always (greedily) pushing for higher rewards? Since dash (like all other shells) is an interpreter, it won't complain until the execution reaches the problematic line. 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

Will appreciate any help in resolving this. Line 1 Syntax Error Word Unexpected Expecting If you'd like to contribute content, let us know. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. 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 For bash there is no defined limit.

Bin Sh C Line 0 Syntax Error Near Unexpected Token

Terms Privacy Security Status Help You can't perform that action at this time. asked 4 years ago viewed 103181 times active 10 months ago Related 2Shell script error message1/shell-script: syntax error near unexpected token `done'4Shell Script - syntax error near unexpected token `else'0Shell script Bin Sh 1 Syntax Error Unexpected How to check the VPN setting created by an app on an iOS device? Bin Sh C Line 1 Syntax Error Unexpected End Of File For details and our forum data attribution, retention and privacy policy, see here Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox.

Please explain the local library system in London, England I accepted a counter offer and regret it: can I go back and contact the previous company? news The shebang line must be the very first thing in the file. This site is not affiliated with Linus Torvalds or The Open Group in any way. Period. Syntax Error Word Unexpected (expecting Do )

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 but it yields the same error message. Hope that help someone In case that's not clear, Tej suggests that it would seem that you're trying to run the cross-compiled qmake on the host system. have a peek at these guys Join our community today!

a single digit). Syntax Error Word Unexpected (expecting ) ) Ubuntu Thats it. The shell doesn't know anything about ifeq, so, depending on your shell, might print an error like that.

On a related note, echo 01>&1 should print an empty line, because 01 should be parsed as a file descriptor number, but again only bash and BusyBox ash get this right.

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 Anyway, likely this could be the issue in the script. For that whatever Export (export PATH=/usr/local/arm/4.3.2/bin:$PATH etc.) we did in step during tslib installation, we have to undo all of that. Python Syntax Error: Word Unexpected (expecting ")") 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

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, Make up your mind. How does Coruscant get food? check my blog When you run it using ./ it will use the shell you mention on first line, in your case: #!/bin/sh if you do a ls -l /bin/sh you will see that

shell shell-script io-redirection share|improve this question edited Nov 8 '14 at 22:31 Gilles 369k666681119 asked Nov 8 '14 at 13:26 MinecraftShamrock 13217 5 Not sure, but I wonder if /bin/sh Not the answer you're looking for? 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 Read all of them.

Perderabo & I have gone around on this as well. Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ

© Copyright 2017 gatoisland.com. All rights reserved.