LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] what does this shell script mean

[ILUG] what does this shell script mean

Vincent Cunniffe vincent at cunniffe.net
Wed May 9 09:39:31 IST 2001


hrishy samant wrote:

> hello 
> 
> could anybody explain me this shell script
 
<schip>


> can anybody explain what this &&set_level 1 means


It's a logical AND statement, used as a trick to run a subsequent 
command *only* if the first command returned a 'success' value.

The evaluation of the expression (X && Y) is false if either X *or* Y 
are false, so Y will not even be evaluated if X is found false.

This is fairly commonly used, in commands such as :

	make && make install

which will only run the second installation command if the compilation 
stage is found to have worked.

Regards,

Vin





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell