@@ -80,7 +80,7 @@ if [ "$1" = '--install' ]; then
80
80
# use psql from the proper installation directory, which might
81
81
# be outdated or missing. But don't override anything else that's
82
82
# already in EXTRA_REGRESS_OPTS.
83
- EXTRA_REGRESS_OPTS=" $EXTRA_REGRESS_OPTS --psqldir=$bindir "
83
+ EXTRA_REGRESS_OPTS=" $EXTRA_REGRESS_OPTS --psqldir=' $bindir ' "
84
84
export EXTRA_REGRESS_OPTS
85
85
fi
86
86
@@ -117,7 +117,7 @@ PGCONNECT_TIMEOUT=""; unset PGCONNECT_TIMEOUT
117
117
PGHOSTADDR=" " ; unset PGHOSTADDR
118
118
119
119
# Select a non-conflicting port number, similarly to pg_regress.c
120
- PG_VERSION_NUM=` grep ' #define PG_VERSION_NUM' $newsrc /src/include/pg_config.h | awk ' {print $3}' `
120
+ PG_VERSION_NUM=` grep ' #define PG_VERSION_NUM' " $newsrc " /src/include/pg_config.h | awk ' {print $3}' `
121
121
PGPORT=` expr $PG_VERSION_NUM % 16384 + 49152`
122
122
export PGPORT
123
123
@@ -141,8 +141,8 @@ export EXTRA_REGRESS_OPTS
141
141
# enable echo so the user can see what is being executed
142
142
set -x
143
143
144
- $oldbindir /initdb -N
145
- $oldbindir /pg_ctl start -l " $logdir /postmaster1.log" -o " $POSTMASTER_OPTS " -w
144
+ " $oldbindir " /initdb -N
145
+ " $oldbindir " /pg_ctl start -l " $logdir /postmaster1.log" -o " $POSTMASTER_OPTS " -w
146
146
if " $MAKE " -C " $oldsrc " installcheck; then
147
147
pg_dumpall -f " $temp_root " /dump1.sql || pg_dumpall1_status=$?
148
148
if [ " $newsrc " != " $oldsrc " ]; then
@@ -167,7 +167,7 @@ if "$MAKE" -C "$oldsrc" installcheck; then
167
167
else
168
168
make_installcheck_status=$?
169
169
fi
170
- $oldbindir /pg_ctl -m fast stop
170
+ " $oldbindir " /pg_ctl -m fast stop
171
171
if [ -n " $make_installcheck_status " ]; then
172
172
exit 1
173
173
fi
0 commit comments