autoconf
[Top][All Lists]
Advanced

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

Re: What shells fail to work if comparing with "" ?


From: Ralf Wildenhues
Subject: Re: What shells fail to work if comparing with "" ?
Date: Thu, 10 Feb 2011 20:40:39 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hello David,

* Dr. David Kirkby wrote on Thu, Feb 10, 2011 at 07:56:24PM CET:
> I know its considered bad practice to check for an empty string with 
> something like:
> 
> if [ "$STR" = "" ] ; then
> 
> but what shells do actually break with this, and under what conditions?

It's not shells that break.  It's these kinds of issues:
http://thread.gmane.org/gmane.comp.sysutils.autoconf.general/13706

Cheers,
Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]