From: Bruce Momjian Date: Fri, 19 Jul 2002 13:50:06 +0000 (+0000) Subject: Fix "$@" to ${1:+"$@"} for older shells. X-Git-Tag: REL9_0_0~17431 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1128c54a09451cbc188bb0b6d7af16dc9c4cf62a;p=pg-rex%2Fsyncrep.git Fix "$@" to ${1:+"$@"} for older shells. --- diff --git a/src/bin/pg_ctl/pg_ctl.sh b/src/bin/pg_ctl/pg_ctl.sh index fcb4cf31d7..0292d3ec32 100755 --- a/src/bin/pg_ctl/pg_ctl.sh +++ b/src/bin/pg_ctl/pg_ctl.sh @@ -8,7 +8,7 @@ # # # 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 if [ -n "$logfile" ]; then - "$po_path" "$@" >$logfile 2>&1 & + "$po_path" ${1:+"$@"} >$logfile 2>&1 & else # when starting without log file, redirect stderr to stdout, so # pg_ctl can be invoked with >$logfile and still have pg_ctl's # stderr on the terminal. - "$po_path" "$@" &1 & + "$po_path" ${1:+"$@"} &1 & fi # if had an old lockfile, check to see if we were able to start diff --git a/src/bin/pgaccess/main.tcl b/src/bin/pgaccess/main.tcl index 1a3d84e7eb..37f30d96fa 100644 --- a/src/bin/pgaccess/main.tcl +++ b/src/bin/pgaccess/main.tcl @@ -1,6 +1,6 @@ #!/bin/sh # the next line restarts using wish \ -exec wish "$0" "$@" +exec wish "$0" ${1:+"$@"} image create bitmap dnarw -data { #define down_arrow_width 15