From owner-freebsd-bugs Tue Jun 3 01:30:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA15828 for bugs-outgoing; Tue, 3 Jun 1997 01:30:03 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA15811; Tue, 3 Jun 1997 01:30:01 -0700 (PDT) Date: Tue, 3 Jun 1997 01:30:01 -0700 (PDT) Message-Id: <199706030830.BAA15811@hub.freebsd.org> To: freebsd-bugs Cc: From: Harlan Stenn Subject: Re: conf/3751: Improvements to /etc/rc{,.network,.pccard} Reply-To: Harlan Stenn Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR conf/3751; it has been noted by GNATS. From: Harlan Stenn 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