|
| From: | Chet Ramey |
| Subject: | Re: input redirection in subshell before command results in error |
| Date: | Sun, 23 May 2004 15:43:09 -0400 |
| User-agent: | Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.6) Gecko/20040113 |
Andrew Brown wrote:
Bash Version: 2.05b
Patch Level: 0
Release Status: release
postconf | ( 3<&0 ( postconf -d | diff - /dev/fd/3 ) )
this works in netbsd's sh, solaris's /bin/sh (and solaris's /sbin/sh
and /usr/xpg4/bin/sh), and in irix's sh, at the very least, along with
ksh and zsh. the error given is:
bash: -c: line 1: syntax error near unexpected token `('
bash: -c: line 1: `postconf | ( 3<&0 ( postconf -d | diff - /dev/fd/3 ) )'
Repeat-By:
postconf | ( 3<&0 ( postconf -d | diff - /dev/fd/3 ) )
Please read the answer to question F5 in the Bash FAQ. Chet
| [Prev in Thread] | Current Thread | [Next in Thread] |