Re: [HACKERS] regression script/makefile exit failure

2004-12-11 Thread Tom Lane
Andrew Dunstan [EMAIL PROTECTED] writes: Further investigation has shown that the exit/trap idiom used in pg_regress.sh is less than 100% portable. The following shell script has been seen to produce incorrect output on both Cygwin and FreeBSD: This is distinctly less than credible. If it

Re: [HACKERS] regression script/makefile exit failure

2004-12-11 Thread Peter Eisentraut
Andrew Dunstan wrote: Further investigation has shown that the exit/trap idiom used in pg_regress.sh is less than 100% portable. The following shell script has been seen to produce incorrect output on both Cygwin and FreeBSD: #!/bin/sh trap ' st=$? echo status = $st exit $st '

Re: [HACKERS] regression script/makefile exit failure

2004-12-11 Thread Andrew Dunstan
Peter Eisentraut wrote: Andrew Dunstan wrote: Further investigation has shown that the exit/trap idiom used in pg_regress.sh is less than 100% portable. The following shell script has been seen to produce incorrect output on both Cygwin and FreeBSD: #!/bin/sh trap ' st=$? echo status = $st

Re: [HACKERS] regression script/makefile exit failure

2004-12-10 Thread Andrew Dunstan
Further investigation has shown that the exit/trap idiom used in pg_regress.sh is less than 100% portable. The following shell script has been seen to produce incorrect output on both Cygwin and FreeBSD: #!/bin/sh trap ' st=$? echo status = $st exit $st ' 0 (exit 9); exit I'm not sure how

[HACKERS] regression script/makefile exit failure

2004-12-10 Thread Andrew Dunstan
I have seen several cases where either pg_regress appears not to exit with the expected non-zero exit status or make check does not apparently exit with the expected non-zero status. In particular, I've seen it on cygwin, windows, and have at least a suspicion of it happening on FreeBSD. The