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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126286
@ -146,7 +146,7 @@ checkyesno()
|
|||||||
reverse_list()
|
reverse_list()
|
||||||
{
|
{
|
||||||
_revlist=
|
_revlist=
|
||||||
for _revfile in $*; do
|
for _revfile; do
|
||||||
_revlist="$_revfile $_revlist"
|
_revlist="$_revfile $_revlist"
|
||||||
done
|
done
|
||||||
echo $_revlist
|
echo $_revlist
|
||||||
@ -289,7 +289,7 @@ _find_processes()
|
|||||||
#
|
#
|
||||||
wait_for_pids()
|
wait_for_pids()
|
||||||
{
|
{
|
||||||
_list=$*
|
_list="$@"
|
||||||
if [ -z "$_list" ]; then
|
if [ -z "$_list" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@ -888,7 +888,7 @@ rc_usage()
|
|||||||
echo -n 1>&2 "Usage: $0 [fast|force]("
|
echo -n 1>&2 "Usage: $0 [fast|force]("
|
||||||
|
|
||||||
_sep=
|
_sep=
|
||||||
for _elem in $*; do
|
for _elem; do
|
||||||
echo -n 1>&2 "$_sep$_elem"
|
echo -n 1>&2 "$_sep$_elem"
|
||||||
_sep="|"
|
_sep="|"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user