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 Feb 15,  5:44pm, tron%NetBSD.org@localhost (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



Home | Main Index | Thread Index | Old Index