mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 10:11:09 -04:00
NetBSD rev. 1.56
Use more concise shell syntax: 1. for i in $* -> for i 2. foo=$* -> foo="$@" Obtained From: NetBSD
This commit is contained in:
parent
4585b18227
commit
42477cdb78
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue