bug-bash
[Top][All Lists]
Advanced

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

Re: pipefail with SIGPIPE/EPIPE


From: Chet Ramey
Subject: Re: pipefail with SIGPIPE/EPIPE
Date: Sun, 15 Feb 2015 16:48:10 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 2/13/15 12:19 PM, Pádraig Brady wrote:
> I was expecting bash to handle SIGPIPE specially here,
> as in this context it's informational rather than an indication of error.

I don't agree.  It's a fatal signal whose default disposition is to
terminate a process, which is exactly what happens in your example.

You might consider trapping or ignoring SIGPIPE in situations where it
might be an issue.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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