Re: How to get bash to shut up about SIGPIPE?
From: Ryan Anderson <hidden>
Date: 2016-06-15 22:41:55
On Thu, Apr 28, 2005 at 12:21:26PM -0700, Linus Torvalds wrote:
On Thu, 28 Apr 2005, Rene Scharfe wrote:quoted
I think you misspelled "cg-log". :-DMy fingers have a hard time learning new patterns, so I've got: torvalds@ppc970:~/git> cat ~/bin/git #!/bin/sh cmd="cg-$1" shift $cmd "$@" until my fingers learn the new thing.quoted
Doing "cg-log | head" gives me 10 lines of log and nothing else. Maybe the problem has been fixed between 0.7 and the current version I'm using (commit ID 49612c471eebd26efe926a71752e254c1cdc382d)?no, this is current as of an hour ago, same head you have. It's a bash-specific thing, and depends on how you compiled bash. Defining "DONT_REPORT_SIGPIPE" in config-top.h when building bash gets rid of it, but I really don't want to rebuild bash just because of this ;)
Debian's bash seems to have that set, so it's a bit hard for me to test (I don't really have any non-Debian machines around these days for some reason.) Try adding "set -e" to the beginning of cg-log. That may cause some *other* problems, but I think it will fix this problem. -- Ryan Anderson sometimes Pug Majere