On Tue, 2006-05-30 at 07:10 +0200, Bo Ørsted Andresen wrote:
> Tuesday 30 May 2006 06:48 skrev Iain Buchanan:
> > I see this [ "x" != "x$BLAH" ] test all over the place, especially in
> > the /etc/init.d scripts.  Maybe -z is not standardised or something?
> > Dunno why people use it.
> 
> Having searched a little further I have been able to locate a few scripts 
> that 
> uses this in my bin folders. Common for those scripts are that they are sh 
> scripts and not bash scripts. Looking at 'man sh' you find no -z or -n but 
> they are in 'man bash'.

Ah, I was looking in /etc/init.d wondering why I couldn't find it :) I
have bad RAM in my head.  I guess sh scripts can be run by sh and bash,
and probably other --sh variants.  Not that that helps with this topic,
I was just thinking aloud :)
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

If you are a police dog, where's your badge?
                -- Question James Thurber used to drive his German Shepherd
                   crazy.

-- 
gentoo-user@gentoo.org mailing list

Reply via email to