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: Stephane Chazelas
Subject: Re: builtin echo command redirection misbehaves in detached scripts when terminal is closed
Date: Sun, 9 Sep 2007 19:10:59 +0100
User-agent: Mutt/1.5.16 (2007-06-11)

On Sun, Sep 09, 2007 at 07:36:52PM +0200, Andreas Schwab wrote:
> Stephane Chazelas <Stephane_Chazelas@yahoo.fr> writes:
> 
> > Bonjour Pierre-Philippe,
> >
> > can be reproduced with 3.2.25 and with:
> >
> > bash -c 'trap "" PIPE; sleep 1; echo a; echo b > a' | :
> 
> I get this:
> 
> $ bash -c 'trap "" PIPE; sleep 1; echo a; echo b > a' | :
> bash: line 0: echo: write error: Broken pipe
> 
> and the file contains only one line.
[...]

Hi Andreas,

What OS and version of glibc? I do get the error message but I
get both a and b in the file.

That was on Linux, glibc 2.6.1.

-- 
Stéphane




reply via email to

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