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
e
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
>
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. I
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 we
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