Fix unportable shell-script syntax in pg_upgrade's test.sh.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a98ad4fabc414c821bfb273f334a5bbccf4a451a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-03-17T01:55:32Z
Releases: 9.3.4
Fix unportable shell-script syntax in pg_upgrade's test.sh.

I discovered the hard way that on some old shells, the locution
    FOO=""   unset FOO
does not behave the same as
    FOO="";  unset FOO
and in fact leaves FOO set to an empty string.  test.sh was inconsistently
spelling it different ways on adjacent lines.

This got broken relatively recently, in commit c737a2e56, so the lack of
field reports to date doesn't represent a lot of evidence that the problem
is rare.

Files

PathChange+/−
contrib/pg_upgrade/test.sh modified +2 −2