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

Thank you everyone for your help again.

BTW, is there a bash email list?  If not, is there a need for one?




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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

  Powered by Linux