Subject: Re: "eval" in rc.d/network
To: itojun@iijlab.net, Robert Elz <kre@munnari.OZ.AU>
From: Henry B. Hotz <hotz@jpl.nasa.gov>
List: tech-net
Date: 09/14/2000 10:29:24
At 1:29 AM +0900 9/15/00, itojun@iijlab.net wrote:
> >Perhaps
> > while read args; do
> > case "$args" in
> > '') ;;
> > '#'*) ;;
> > *) ifconfig $int $args ;;
> > esac; done </etc/ifconfig.$int
> >would work more clearly ("read" already strips leading whitespace).
> >Trailing comments on a line containing ifconfig args have never been
> >handled, so there's no need to start now.
>
> which one (eval or case) do people like better? i'll test "case"
> variant locally.
I think the 'case' case is clearer. The 'eval' case seems confusing
to me. That's what started this discussion after all.
Just my $0.02. (How many yen?)
Signature held pending an ISO 9000 compliant
signature design and approval process.
h.b.hotz@jpl.nasa.gov, or hbhotz@oxy.edu