Re: Stupid bash question

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

 



On Mon, 2007-12-10 at 15:48 -0700, Paul Lemmons wrote:
> 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
Shouldn't the operator above be ==
> > 
> > Would that be teh same as:
> > 
> > if [ "`isthislinux`" == "LINUX" ]
> > then
> >    ulimit -S -n 65536
> > fi
> > 
> > This is quite confusing to me.
> > 
> > 
> > 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
--
=======================================================================
Onward through the fog.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux