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
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!