According to Bruno Haible on 2/20/2010 1:23 PM: > Hi Ben, > > Below is a proposed fix (untested).
Or maybe this would be better, by creating a subsidiary process to drain off the pipe (at which point, you have to be careful about how $? is tested). Also untested, but 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 -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net
signature.asc
Description: OpenPGP digital signature