gnu.bash.bug
[Top] [All Lists]

Re: cannot pipe output of trap

Subject: Re: cannot pipe output of trap
From: Chet Ramey <chet.ramey@xxxxxxxx>
Date: Wed, 23 Jul 2008 10:41:19 -0400
Newsgroups: gnu.bash.bug


proway.imbusch@xxxxxxxxxxx wrote:

Machine Type: i686-pc-cygwin

Bash Version: 3.2
Patch Level: 39
Release Status: release

Description:
        After registering trap handlers, 'trap | cat' does not deliver any
        output ('trap' does).

Each element of a pipeline is run in a separate process.  The subshell
forked to run each element does not inherit traps from its parent --
disposition of trapped signals is reset to the default.  This is as Posix
specifies.

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@xxxxxxxx    http://cnswww.cns.cwru.edu/~chet/



<Prev in Thread] Current Thread [Next in Thread>