bug-bash
[Top][All Lists]
Advanced

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

Re: cannot pipe output of trap


From: Chet Ramey
Subject: Re: cannot pipe output of trap
Date: Wed, 23 Jul 2008 10:41:19 -0400
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

address@hidden 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    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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