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

Bug#429021: builtin echo command redirection misbehaves in detached scripts when terminal is closed

Dmitry Potapov a écrit :
> On Mon, Sep 10, 2007 at 12:05:57AM +0200, Aurelien Jarno wrote:
>>> I wouldn't be surprised if it has to do with the fix to debian
>>> bug #429021. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=429021
>>> (I'm CCing Dmitry who is the author of that change according to
>>> bugs.debian.org)
>> I can reproduce the "bug" with glibc from etch, or even from sarge, so I
>> really doubt that it comes from this change.
> I can NOT reproduce the problem with glibc from etch, and I do believe
> that my patch caused the aforementioned problem, though I do not think
> that the patch was incorrect, as to the real bug lies inside of those
> shells.

What is the exact command to run? On a etch machine I get:

[anguille:~]$ bash -c 'echo a; echo b > a' >&-
bash: line 0: echo: write error: Bad file descriptor

  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

Reply to: