bug-bash
[Top][All Lists]
Advanced

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

Re: builtin echo command redirection misbehaves in detached scripts when


From: Eric Blake
Subject: Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed
Date: Sun, 09 Sep 2007 20:21:27 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Stephane Chazelas on 9/9/2007 11:17 AM:
> can be reproduced with 3.2.25 and with:
> 
> bash -c 'trap "" PIPE; sleep 1; echo a; echo b > a' | :
> 
> It seems to be down to the usage of stdio.

Indeed.  I raised this very bug several months ago:
http://lists.gnu.org/archive/html/bug-bash/2007-04/msg00070.html

where the cd builtin has the same issue.  I also proposed several
approaches for fixing the issue.

- --
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

iD8DBQFG5Kom84KuGfSFAYARAgOfAKCiUMKGYRG8+xRJRIoxM5PSnkMoNACgqane
BFh6hhMjAibDs0PgSf032Xw=
=OF9G
-----END PGP SIGNATURE-----




reply via email to

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