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

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

 



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

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux