Re: Stupid bash question

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

 



The "&&" says "if the previous command was successful, do the following command. So, if you have a command "isthislinux" on your machine (I do not) and it returns the string "LINUX" it will issue the ulimit command. If you do not have that command or the command returns something else, it will not.

So, the short answer is: yes


-------- Original Message  --------
Subject: Stupid bash question
From: aragonx@xxxxxxxxxx
To: fedora-list@xxxxxxxxxx
Date: 12/10/2007 03:29 PM

Okay, I'm confused.  How would bash interpret this line?

[ "`isthislinux`" = "LINUX" ] && ulimit -S -n 65536

Would that be teh same as:

if [ "`isthislinux`" == "LINUX" ]
then
   ulimit -S -n 65536
fi

This is quite confusing to me.



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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

  Powered by Linux