|
1 | 1 | #! /bin/sh
|
2 |
| -# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.14 2000/12/11 19:00:33 tgl Exp $ |
| 2 | +# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.15 2000/12/31 18:38:44 tgl Exp $ |
3 | 3 |
|
4 | 4 | me=`basename$0`
|
5 | 5 | :${TMPDIR=/tmp}
|
@@ -89,9 +89,6 @@ unset top_builddir
|
89 | 89 | unset temp_install
|
90 | 90 | unset multibyte
|
91 | 91 |
|
92 |
| -export PGHOST |
93 |
| -export PGPORT |
94 |
| - |
95 | 92 | dbname=regression
|
96 | 93 | hostname=localhost
|
97 | 94 |
|
|
138 | 135 | shift;;
|
139 | 136 | --host=*)
|
140 | 137 | PGHOST=`expr"x$1":"x--host=\(.*\)"`
|
| 138 | +export PGHOST |
141 | 139 | shift;;
|
142 | 140 | --port=*)
|
143 | 141 | PGPORT=`expr"x$1":"x--port=\(.*\)"`
|
| 142 | +export PGPORT |
144 | 143 | shift;;
|
145 | 144 | --user=*)
|
146 | 145 | PGUSER=`expr"x$1":"x--user=\(.*\)"`
|
@@ -276,10 +275,12 @@ then
|
276 | 275 | PGDATA=$temp_install/data
|
277 | 276 | if ["$unix_sockets"= no ];then
|
278 | 277 | PGHOST=$hostname
|
| 278 | +export PGHOST |
279 | 279 | else
|
280 | 280 | unset PGHOST
|
281 | 281 | fi
|
282 | 282 | PGPORT=65432
|
| 283 | +export PGPORT |
283 | 284 |
|
284 | 285 | # ----------
|
285 | 286 | # Set up shared library paths, needed by psql and pg_encoding
|
@@ -357,7 +358,10 @@ then
|
357 | 358 | else# not temp-install
|
358 | 359 |
|
359 | 360 | # If Unix sockets are not available, use the local host by default.
|
360 |
| - ["$unix_sockets"= no ]&&${PGHOST=$hostname} |
| 361 | +if ["$unix_sockets"= no ];then |
| 362 | + PGHOST=$hostname |
| 363 | +export PGHOST |
| 364 | +fi |
361 | 365 |
|
362 | 366 | if [-n"$PGPORT" ];then
|
363 | 367 | port_info="port$PGPORT"
|
|