Subject: Re: CVS commit: src/etc/rc.d
To: Matthias Scheler <tron@NetBSD.org>
From: Christos Zoulas <christos@zoulas.com>
List: source-changes
Date: 02/15/2007 12:46:40
On Feb 15, 5:44pm, tron@NetBSD.org (Matthias Scheler) wrote:
-- Subject: Re: CVS commit: src/etc/rc.d
| Works for me:
|
| tron@colwyn:~>cat tt
| #!/bin/sh
| if [ "$1" = "-foo" ]
| then
| echo equal
| else
| echo not equal
| fi
| tron@colwyn:~>./tt -foo
| equal
| tron@colwyn:~>./tt foo
| not equal
|
| Even Solaris old fashioned "/bin/sh" doesn't need the X$VARNAME case.
|
Indeed it does. But other "test" implementations are not that smart.
christos