From owner-freebsd-bugs Mon Jun 2 12:40:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA07534 for bugs-outgoing; Mon, 2 Jun 1997 12:40:07 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA07503; Mon, 2 Jun 1997 12:40:02 -0700 (PDT) Date: Mon, 2 Jun 1997 12:40:02 -0700 (PDT) Message-Id: <199706021940.MAA07503@hub.freebsd.org> To: freebsd-bugs Cc: From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: conf/3751: Improvements to /etc/rc{,.network,.pccard} Reply-To: j@uriah.heep.sax.de (J Wunsch) 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: j@uriah.heep.sax.de (J Wunsch) To: Harlan.Stenn@pfcs.com (Harlan Stenn) Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: conf/3751: Improvements to /etc/rc{,.network,.pccard} Date: Mon, 2 Jun 1997 21:21:11 +0200 As Harlan Stenn wrote: > J> foo="-ain't this weird?-" > > J> if [ "$foo" = "bar" ] ; ... > > Did you mean: > > if [ $foo = "bar" ] ; ... > > Shell metacharacters aren't expanded with "$foo". No, i meant the problem that arises if $foo evaluates to something that could become a valid switch for test(1). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)