From: Paul Jackson Date: Mon, 02 May 2005 16:10:27 GMT Subject: Re: How to get bash to shut up about SIGPIPE? Message-ID: <20050502091027.6753998e.pj@sgi.com> In-Reply-To: <4274FB10.6090600@dwheeler.com> David wrote: > One approach is to install a trap for SIGPIPE in > non-terminating command in a pipeline where the > later items might not process all the data, e.g.: > (trap {} SIGPIPE; find .) | head -1 Both the versions of bash that I looked at (2.05 and 3.0) _still_ complain even if SIGPIPE is trapped - they just complain with a more terse message, unless DONT_REPORT_SIGPIPE is not defined. Linus's version apparently isn't even more terse with this trap. What bash do you have that this trap silences? > ... rant ... agreed -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson 1.650.933.1373, 1.925.600.0401