Home > Syntax Error > Bash Syntax Error Redirection Unexpected

Bash Syntax Error Redirection Unexpected

Contents

American English: are [ə] and [ʌ] different phonemes? How to book a flight if my passport doesn't state my gender? Join them; it only takes a minute: Sign up Syntax error: redirection unexpected up vote 3 down vote favorite 2 I ran a deployment script to setup my server as root. what is the difference between \twocolumn and \documentclass[twocolumn]{book} Can I use an HSA as investment vehicle by overcontributing temporarily? this contact form

Join them; it only takes a minute: Sign up Bash: Syntax error: redirection unexpected up vote 53 down vote favorite 11 I do this in a script: read direc <<< $(basename share|improve this answer answered Mar 17 '10 at 13:05 John Kugelman 173k36306384 Is there a way to fix this easily ? –Sliq Dec 21 '14 at 20:52 3 make View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by make 02-06-2012, 06:23 AM #2 everToulouse LQ Newbie Registered: Apr 2010 Posts: I use Multisystem all of the time and have installed it on both Kubuntu and Ubuntu and have used it with no issues.

/bin/sh 1 Syntax Error Redirection Unexpected

How does Gandalf get informed of Bilbo's 111st birthday party? more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science So if it hangs on your end catkin, then there was a feature change in either 4.1.6 or 4.1.7. But in case the script author named it badly, and it's really a bash script, you can try running with bash (as geirha suggested): bash install-depot-multisystem.sh Running in the Current Shell

Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. I'm lost and really hoping someone can help. more hot questions question feed lang-sh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Bash Syntax Error Near Unexpected Token Done' I couldn't immediately figure how to make it work like mine (so that it stops immediately upon finishing the word "STOP").

Religious supervisor wants to thank god in the acknowledgements In a GNU C macro envSet(name), what does (void) "" name mean? Been using Debian for 10 years. Having a problem logging in? Rosa Parks is a [symbol?] for the civil rights movement?

Reload to refresh your session. Bash Syntax Error Near Unexpected Token Echo' A simple visual puzzle to die for Modern soldiers carry axes instead of combat knives. Here's my bash version: Code: GNU bash, versio 4.1.5(1)-release (x86_64-pc-linux-gnu) I just realized that I can run the scripts by typing "bash script-name.sh". What does an 'ü' mean?

Bash Syntax Error Unexpected Token

Even ATT ksh93 and posh are non-compliant, as are dash, mksh and zsh: $ ksh -c 'echo 10>a; wc -c a' 3 a $ posh -c 'echo 10>a; wc -c a' Running the scripts with "bash script-name" is fine with me, regardless of the extensions. /bin/sh 1 Syntax Error Redirection Unexpected It's weird I didn't get a single notification from this at all. Bash Syntax Error Unexpected End Of File The Woz Monitor Least Common Multiple How rich can one single time travelling person actually become?

I agree with you. http://gatoisland.com/syntax-error/bash-for-syntax-error-near-unexpected-token.php Why? Join our community today! Now I know my ABCs, won't you come and golf with me? Bash Syntax Error Near Unexpected Token

Sorry to be a pain but both files start with #!/bin/bash –Jimmy Nov 24 '13 at 20:57 Fact: when I run your test.sh script as bash test.sh there's no make View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by make 02-08-2012, 03:24 AM #8 Dark_Helmet Senior Member Registered: Jan 2003 Posts: Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count). navigate here But most shells instead report a syntax error, because they don't parse the 200 part as a file descriptor number but as an ordinary token.

share|improve this answer edited Mar 20 '15 at 14:05 answered Mar 20 '15 at 13:45 Hynek -Pichi- Vychodil 19.6k33060 That's a ridiculously inelegant solution to a simple problem. Bash Syntax Error Near Unexpected Token (' Ubuntu The OS is exactly the same, the script is the same; but now it won't install. 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

I assumed that it automatically took the "/bin/bash" specified in the beginning of the file, but it did not.

My guess is the script is actually a bash script, which is not the same as an sh script. A name for a well-informed person who is not believed? You'll see that it's HTML, not the bash script you wanted. Bash Syntax Error Near Unexpected Token Else' Even with the correct shebang line pointing to the local installation of expect, his script failed because the filename has a "sh" extension and was being invoked with /bin/sh.

share|improve this answer answered Jun 6 '11 at 17:02 Motin 1,90411728 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign I run "sh install-depot-multisystem.sh" and get "Syntax error:redirection unexpected", this worked literally 2 days ago. Adopt A Jet/Book Is this safe to display MySQL query error in webpage if something went wrong? his comment is here The largest possible value is implementation-defined; however, all implementations shall support at least 0 to 9, inclusive, for use by the application.

Good way to explain fundamental theorem of arithmetic? catkin View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by catkin View Blog 02-08-2012, 03:54 AM #10 catkin LQ 5k Club Registered: In this case, your script has a ".sh" extension, and that code (wherever it is) decides to launch your script using /bin/sh. 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

But I'm getting this error sh: 1: Syntax error: redirection unexpected When I printed $mysql_cmd I got debconf-set-selections <<< 'mysql-server mysql-server/root_password password 6ygr' ;debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password 6ygr'; apt-get -y I ran "/usr/sbin/update-binfmts --display" expecting to see an association between a "sh" extension and "/bin/sh" but there was none. I have not located the source, although I've been motivated to investigate some. Is the following extension of finite state automata studied?

Dark_Helmet View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by Dark_Helmet 02-08-2012, 02:39 AM #7 make Member Registered: Apr 2004 Distribution: Mandriva, Now I know my ABCs, won't you come and golf with me? Not the answer you're looking for? Why not post an answer suggesting that so the OP can accept it instead? –terdon♦ Nov 8 '14 at 21:54 @mikeserv fair enough, edited. –terdon♦ Nov 8 '14 at

Symbolic comparison of recursive functions Force Microsoft Word to NEVER auto-capitalize the name of my company Is 8:00 AM an unreasonable time to meet with my graduate students and post-doc? Code: GNU bash, versio 4.1.5(1)-release (x86_64-pc-linux-gnu) As long as bash doesn't get any updates that would make my scripts obsolete (strictly POSIX-only), the problem can be considered as solved.

© Copyright 2017 gatoisland.com. All rights reserved.