Subject: Re: CVS commit: src/etc/rc.d
To: Christos Zoulas <christos@zoulas.com>
From: Matthias Scheler <tron@NetBSD.org>
List: source-changes
Date: 02/15/2007 18:52:35
On Thu, Feb 15, 2007 at 12:46:40PM -0500, Christos Zoulas wrote:
> | 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.

Maybe. But this is a NetBSD specific scripts. So there is IMHO no reason
to clutter it with hacks for broken shells.

	Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/