Re: How to get bash to shut up about SIGPIPE?
- From
- Edgar Toernig <froese@gmx.de>
- Date
- Apr 28, 2005, 21:31 UTC
- Message-ID
- <20050428233104.3e606ba9.froese@gmx.de>
- In-Reply-To
- <Pine.LNX.4.58.0504281121430.18901@ppc970.osdl.org>
Linus Torvalds wrote:
> > Damn bash. What's the magic incantation that says SHUT UP!?
Try this:
+ { set -e; trap 'exit 1' SIGPIPE
$revls | $revsort | while read time commit parents; do
[ "$revfmt" = "rev-list" ] && commit="$time"
...
- done | ${PAGER:-less} ${PAGER_FLAGS:--R}
+ done; } | ${PAGER:-less} ${PAGER_FLAGS:--R}Ciao, ET.