It says it is installed, but I still can't find it. I'm on my way to bed. Then I tried to run another script called test.sh which had the following lines in it: # Logging exec > >(tee -a /var/log/test_full.log) exec 2> >(tee -a /var/log/test_error.log) However when I I am designing a new exoplanet. check my blog
Several possible fixes: Reinstall bash: sudo aptitude reinstall bash Upgrade to Hardy Download the bash source package, bump the version number, build the package, and install it. Is this alternate history plausible? (Hard Sci-Fi, Realistic History) Why don't cameras offer more than 3 colour channels? (Or do they?) Bangalore to Tiruvannamalai : Even, asphalt road Is it illegal Password Home Search Forums Register Forum RulesMan PagesUnix Commands Linux Commands FAQ Members Today's Posts Shell Programming and Scripting BSD, Linux, and Unix shell scripting — Post awk, bash, csh, ksh, Running the scripts with "bash script-name" is fine with me, regardless of the extensions. http://stackoverflow.com/questions/2462317/bash-syntax-error-redirection-unexpected
Not the answer you're looking for? nothing has changed! The lexing rules as mandated by the Open Group are basically longest-first-match: "[...] 2. but dash is much more different.
Copy sent to Gerrit Pape
If I use a script written by a third-party, there is no way I am going edit the file to call out /bin/bash in lieu of /bin/sh. Copy sent to Gerrit Pape
So in the end this thread was helpful. Syntax Error: "(" Unexpected Please still feel free (anyone, not just the submitter ;-)) to work on this on the
works fine! Jonathan Severity set to 'wishlist' from 'normal' Request was from Jonathan Nieder
And anyway, if you can't solve the problem with the information in this thread, ask a new question with the full content of the script and copy-paste the full error message(s). http://back2cloud.com/syntax-error/perl-while-loop-syntax-error.php fatih commented Sep 2, 2015 @yichengq thanks much! Try to move the shebang in line 1. –manatwork Aug 18 '12 at 11:45 According to that article calling /bin/bash directly instead of /bin/sh will; correctly use bash instead Of course, the most important thing is that I have my scripts now working. Bash Redirection
So, I'll give you some untested/unverified code that I think is POSIX and accomplishes the same task. That is when I noticed that my /bin/bash was a link. Should I use "teamo" or "skipo"? http://back2cloud.com/syntax-error/perl-while-syntax-error.php How to add non-latin entries in hosts file How do you say "you all" in Esperanto?
The script waited for input on stdin as expected until I typed "STOP" at which point it immediately ended. Bash Split String On a minor rant here: it takes more effort to type "#!/bin/bash" than it does to give a filename a ".sh" extension. Output the Hebrew alphabet DDoS ignorant newbie question: Why not block originating IP addresses?
The script is linked in that article but convenience you can find it here also. Or... I can't find the actual bash shell anywhere. Message #25 received at [email protected] (full text, mbox, reply): From: Jonathan Nieder
Terms Privacy Security Status Help You can't perform that action at this time. make View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by make 02-08-2012, 07:49 AM #12 catkin LQ 5k Club Registered: Dec 2008 Why do units (from physics) behave like numbers? More about the author Message #37 received at [email protected] (full text, mbox, reply): From: Jonathan Nieder
It says it is installed, but I still can't find it. Quote: Originally Posted by make What would be the POSIX syntax of my script?