Date: Tue, 3 Jun 1997 01:30:01 -0700 (PDT)
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
To: freebsd-bugs
Subject: Re: conf/3751: Improvements to /etc/rc{,.network,.pccard}
Message-ID: <199706030830.BAA15811@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/3751; it has been noted by GNATS.
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/3751: Improvements to /etc/rc{,.network,.pccard}
Date: Tue, 03 Jun 1997 03:54:29 -0300
J> foo="-ain't this weird?-"
J> if [ "$foo" = "bar" ] ; ...
>> Did you mean:
>>
>> if [ $foo = "bar" ] ; ...
>>
>> Shell metacharacters aren't expanded with "$foo".
J> No, i meant the problem that arises if $foo evaluates to something
J> that could become a valid switch for test(1).
Oh. That's a problem, and another reason why I often prefer a case statement.
The good news is that in none of the places I've changed would this be
the case.
H
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706030830.BAA15811>
