Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1128c54

Browse files
committed
Fix "$@" to ${1:+"$@"} for older shells.
1 parent8627002 commit1128c54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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.25 2001/09/29 03:09:32 momjian Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.26 2002/07/19 13:50:06 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""$@"</dev/null>>$logfile2>&1&
335+
"$po_path"${1:+"$@"}</dev/null>>$logfile2>&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""$@"</dev/null2>&1&
340+
"$po_path"${1:+"$@"}</dev/null2>&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" "$@"
3+
exec wish"$0"${1:+"$@"}
44

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp