Eric Blake wrote: > shorter than Bruno's proposal, and does not > have to worry about shell signal handling (which is somewhat difficult to > do portably): > > > - && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then > > test `echo hi | { ./conftest$ac_exeext; echo $?; cat > /dev/null; }` = 1
I like this too, in this case. But we rely on the 'trap - SIGPIPE' command in gnulib-tool. This code has a 20-line comment and *still* does not work?? Ben Pfaff wrote: > I still see the "broken pipe" error with it. Could you please investigate, by using strace, looking at signal masks of processes, etc.? This "broken pipe" issue in bash is becoming extremely unsatisfying. We have the world-class shell programming experts on this mailing list and *still* don't understand how SIGPIPE works?! Bruno