Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/etc/rc.d



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/



Home | Main Index | Thread Index | Old Index