Skip to content

Commit ec79379

Browse files
committed
Another "$@" cleanup with new syntax, ${1+"$@"}.
1 parent 1128c54 commit ec79379

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/bin/pg_ctl/pg_ctl.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.26 2002/07/19 13:50:06 momjian Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.27 2002/07/19 15:31:42 momjian Exp $
1212
#
1313
#-------------------------------------------------------------------------
1414

@@ -332,12 +332,12 @@ if [ "$op" = "start" -o "$op" = "restart" ];then
332332
fi
333333

334334
if [ -n "$logfile" ]; then
335-
"$po_path" ${1:+"$@"} </dev/null >>$logfile 2>&1 &
335+
"$po_path" ${1+"$@"} </dev/null >>$logfile 2>&1 &
336336
else
337337
# when starting without log file, redirect stderr to stdout, so
338338
# pg_ctl can be invoked with >$logfile and still have pg_ctl's
339339
# stderr on the terminal.
340-
"$po_path" ${1:+"$@"} </dev/null 2>&1 &
340+
"$po_path" ${1+"$@"} </dev/null 2>&1 &
341341
fi
342342

343343
# if had an old lockfile, check to see if we were able to start

src/bin/pgaccess/main.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
# the next line restarts using wish \
3-
exec wish "$0" ${1:+"$@"}
3+
exec wish "$0" ${1+"$@"}
44

55
image create bitmap dnarw -data {
66
#define down_arrow_width 15

src/bin/pgaccess/pgaccess.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ export PGACCESS_HOME
1010
export PGLIB
1111
export PGPORT
1212

13-
exec "${PATH_TO_WISH}" "${PGACCESS_HOME}/main.tcl" "$@"
13+
exec "${PATH_TO_WISH}" "${PGACCESS_HOME}/main.tcl" ${1+"$@"}

0 commit comments

Comments
 (0)