bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inconsistent output for cd


From: Eric Blake
Subject: Re: inconsistent output for cd
Date: Wed, 04 Apr 2007 06:56:48 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.666

-----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             ebb9@byu.net
-----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-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]