On Fri, 18 Sep 2009, David Brownlee wrote:
> Index: src/distrib/common/runlist.sh
  [...]
> +( while [ "X$1" != "X" ]; do
> +     cat $1
> +     shift
> +done ) | awk -f ${NETBSDSRCDIR}/distrib/common/list2sh.awk | ${SHELLCMD}

Why is the while loop necessary?  Why not just use

        awk -f .../list2sh.awk "$@"

As far as I can tell, the only difference between the while loop an my
suggestion is in the behaviour when there are no args (which might
never happen, or which can be handled by an additional test), or the
behaviour when one of the args is an empty string (which I hope never
happens).

--apb (Alan Barrett)

Reply via email to