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 > ' 0 > > (exit 9); exit
I seem to recall that there is a bug in the FreeBSD shell with line breaks in traps. Try changing the above to trap 'st=$?; echo status = $st; exit $st' 0 -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])