From: hrishy samant (hrishys at domain yahoo.co.uk)
Date: Wed 09 May 2001 - 10:21:54 IST
hey thanks buddy can you also if possible tell me what
is getopts all about.
--- Vincent Cunniffe <vincent at domain cunniffe.net> wrote: >
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
>
>
> --
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for
> (un)subscription information.
> List maintainer: listmaster at domain linux.ie
____________________________________________________________
Do You Yahoo!?
Get your free at domain yahoo.co.uk address at http://mail.yahoo.co.uk
or your free at domain yahoo.ie address at http://mail.yahoo.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:14 GMT