[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls: write error: Broken pipe
From: |
Dan Nicolaescu |
Subject: |
Re: ls: write error: Broken pipe |
Date: |
Fri, 09 Nov 2007 00:59:54 -0800 |
Jim Meyering <address@hidden> writes:
> Dan Nicolaescu <address@hidden> wrote:
>
> > Jim Meyering <address@hidden> writes:
> >
> > > Dan Nicolaescu <address@hidden> wrote:
> > >
> > > > address@hidden (Bob Proulx) writes:
> > > >
> > > > > Dan Nicolaescu wrote:
> > > > > > Paul Eggert writes:
> > > > > > > bash -c '(while echo foo; do :; done); echo status=$?
>&2' | head
> > > > > > >
> > > > > > > If it eventually outputs "write error: Broken pipe", you
have SIGPIPE
> > > > > > > trapped, and that would explain your problem (which you
need to track
> > > > > > > down). If it prints "status=141" you do not have SIGPIPE
trapped and
> > > > > > > we need to investigate the issue further.
> > > > > >
> > > > - when run from the Linux console it fails with the broken pipe
> > > > error. In that case the pstree chain is like this: init - login -
tcsh
> > >
> > > That's the way it should be.
> > > So your login shell is clean,
> >
> > Are you sure? It seems to me that the right way is to not fail with
> > the broken pipe error, but to print 141.
>
> Oh. You're right. I misread.
> What version of bash are you using?
bash-3.2-9.fc7
> Did you compile it yourself?
No.
> There was a related bug in bash back in 2004,
> so be sure you're using something recent.
>
> Have you tried changing your login shell to bash?
Yeah, changing the login shell to bash works.
But so does running bash from tcsh and running tcsh from that bash.
- Re: ls: write error: Broken pipe, (continued)
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/02
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/02
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/08
- Re: ls: write error: Broken pipe, Paul Eggert, 2007/11/08
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/09
- Re: ls: write error: Broken pipe, Bob Proulx, 2007/11/09
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/09
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/09
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe,
Dan Nicolaescu <=
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/09
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/10
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/10
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/11
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/18
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/19
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/19