Subject: Re: "eval" in rc.d/network
To: Robert Elz <kre@munnari.OZ.AU>
From: None <itojun@iijlab.net>
List: tech-net
Date: 09/15/2000 01:29:59
>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.
> | actually, I was confused by the fact
> | nwid ''
> | does not work in ifconfig.wi0, as '' itseif (not the empty string)
> | will be passed as the SSID.
>Fixing that would require an eval on the ifconfig, and while it isn't
>likely, that could break other stuff.
a tricky workaround (from onoe) is to use the following :-P
nwid 0x
itojun