Re: Stupid bash question

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

 



On Tue, 2007-12-11 at 09:30 -0600, Aaron Konstam wrote:
> On Mon, 2007-12-10 at 15:48 -0700, Paul Lemmons wrote:

> > > Okay, I'm confused.  How would bash interpret this line?
> > > 
> > > [ "`isthislinux`" = "LINUX" ] && ulimit -S -n 65536
> Shouldn't the operator above be ==

No, '=' is "test"'s POSIX/ISO/IEEE-standardized string comparison
operator (c.f. man test).

'==' is a bash-specific, non-standardized extension to "test". 
/bin/sh scripts should not use '=='.

Ralf



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux