mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Fix "$@" to ${1:+"$@"} for older shells.
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.25 2001/09/29 03:09:32 momjian Exp $
|
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.26 2002/07/19 13:50:06 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -332,12 +332,12 @@ if [ "$op" = "start" -o "$op" = "restart" ];then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$logfile" ]; then
|
if [ -n "$logfile" ]; then
|
||||||
"$po_path" "$@" </dev/null >>$logfile 2>&1 &
|
"$po_path" ${1:+"$@"} </dev/null >>$logfile 2>&1 &
|
||||||
else
|
else
|
||||||
# when starting without log file, redirect stderr to stdout, so
|
# when starting without log file, redirect stderr to stdout, so
|
||||||
# pg_ctl can be invoked with >$logfile and still have pg_ctl's
|
# pg_ctl can be invoked with >$logfile and still have pg_ctl's
|
||||||
# stderr on the terminal.
|
# stderr on the terminal.
|
||||||
"$po_path" "$@" </dev/null 2>&1 &
|
"$po_path" ${1:+"$@"} </dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if had an old lockfile, check to see if we were able to start
|
# if had an old lockfile, check to see if we were able to start
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# the next line restarts using wish \
|
# the next line restarts using wish \
|
||||||
exec wish "$0" "$@"
|
exec wish "$0" ${1:+"$@"}
|
||||||
|
|
||||||
image create bitmap dnarw -data {
|
image create bitmap dnarw -data {
|
||||||
#define down_arrow_width 15
|
#define down_arrow_width 15
|
||||||
|
Reference in New Issue
Block a user