Andrew Dunstan <andrew(at)dunslane(dot)net> 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 were true, we'd have been
seeing regression failures on FreeBSD for years. The script has looked
like that at least back to 7.1 ...
regards, tom lane