-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Tony Balinski on 4/3/2007 11:49 AM: > > Running bash on Cygwin (taken from Cygwin): ... > Curiously, under the same conditions on a Red Hat Linux box:
Why didn't you say so in the first place? If this behavior only occurs on cygwin, then it is a bug in either cygwin or the bash port of cygwin, and you should have reported it to the cygwin mailing list, rather than forcing upstream to come up with the workaround. At any rate, since I maintain the cygwin port of bash, I'll look into it; I can certainly reproduce it, so it looks like there is a problem with file redirection on builtins inside command substitution on cygwin. $ pwd /home/eblake/bash $ command cd bash /home/eblake/bash $ command cd bash 2>/dev/null 1>&2 $ echo $(command cd bash 2>/dev/null 1>&2) /home/eblake/bash $ - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGE6CP84KuGfSFAYARAmgUAJ4lpL/1UqDmnuRuNXGopmhRaesf4gCgvl9g DTVlt4U5TTHAUVJs0zxFAyA= =yVCB -----END PGP SIGNATURE----- _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash