[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, 02 Nov 2007 08:08:36 -0700 |
Jim Meyering <address@hidden> writes:
> Dan Nicolaescu <address@hidden> wrote:
> > I have been using this alias: lt = 'ls -lt | head'
> ...
> > ls: write error: Broken pipe
> >
> > Is there any reason for this error to be printed?
>
> Hi Dan,
>
> You should see it only if you have changed the default signal
> handling to ignore SIGPIPE, and then only some of the time.
> When it's possible to see it, kernel buffering and the size of your
> environment also determine how much can be written before the
> signal is sent.
Hmm, that probably explains the behavior I am seeing: in the beginning
no error, but after executing a few commands (i.e. the history size
grows)
This is with tcsh, and AFAIK tcsh does not have a way to tell it
whether to catch SIGPIPE or not. Maybe something has changed in tcsh
to make it catch SIGPIPE...
> This topic was beaten to death as a side effect of my patch to
> make git detect a bunch of previously-ignored write errors:
>
> http://thread.gmane.org/gmane.comp.version-control.git/48469/focus=48617
>
> If you're bored, read on in that thread... it gets even more animated.
Sorry, I don't know about this... (and I don't have time to read a
very long thread).
- ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/01
- Re: ls: write error: Broken pipe, Paul Eggert, 2007/11/01
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/01
- Re: ls: write error: Broken pipe,
Dan Nicolaescu <=
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/02
- 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