- process substitution in BASH 2.05
- Posted by funtoosh on February 26th, 2004
Hi
The following command works when I give it on command prompt:
$./myProgram arg1 arg2 > >(anotherProg) &
But when I put the same line in a.bash script and executed it : it cribs
$./a.bash (contains #!/bin/sh)
a.bash:line 1: syntax error near unexpected token '>'
I am using Linux 2.4.20.x under RedHat-9
Any clue ?
I am newbie.
thanks
- Posted by Barry Margolin on February 26th, 2004
In article <5fe73253.0402261023.3039f428@posting.google.com>,
a_gilotra@yahoo.com (funtoosh) wrote:
It should start with #!/bin/bash
When bash is run using the name "sh" instead of "bash", it doesn't
implement most of the extensions, and reverts to sh-compatible behavior.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
- Font Substitution (Drivers) by Shankar9483
- Variable Substitution (MS-DOS) by Grace Lin
- Substitution (MS-DOS) by YoungSherlok
- Bash calls TCL, TCL calls Bash, 2nd Bash never reads input (Linux / Variants) by Phil Powell
- notification on drive substitution (Development Resources) by Marcel van den Dungen

