diff options
author | mtm <mtm@FreeBSD.org> | 2004-02-26 12:30:38 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-02-26 12:30:38 +0000 |
commit | 9ba5c8e1c571a5cf454ec0122c66e56207253d28 (patch) | |
tree | 045986ddd3c0f4bb96ac07a0d648bb0d43372b04 /etc | |
parent | c274def8fc75bc97749d1c559a5cfefe96ce2a4c (diff) | |
download | FreeBSD-src-9ba5c8e1c571a5cf454ec0122c66e56207253d28.zip FreeBSD-src-9ba5c8e1c571a5cf454ec0122c66e56207253d28.tar.gz |
NetBSD rev. 1.56
Use more concise shell syntax:
1. for i in $* -> for i
2. foo=$* -> foo="$@"
Obtained From: NetBSD
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.subr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.subr b/etc/rc.subr index 9aa1ccd..6a3845c 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -146,7 +146,7 @@ checkyesno() reverse_list() { _revlist= - for _revfile in $*; do + for _revfile; do _revlist="$_revfile $_revlist" done echo $_revlist @@ -289,7 +289,7 @@ _find_processes() # wait_for_pids() { - _list=$* + _list="$@" if [ -z "$_list" ]; then return fi @@ -888,7 +888,7 @@ rc_usage() echo -n 1>&2 "Usage: $0 [fast|force](" _sep= - for _elem in $*; do + for _elem; do echo -n 1>&2 "$_sep$_elem" _sep="|" done |