[Cumbria] Re: The Guy has a point

Ken Hough cumbria at mailman.lug.org.uk
Sat Jan 18 22:34:04 2003


Ian Linwood wrote:

>
> Hello Ken,
>
> Friday, January 17, 2003, 9:15:07 AM, you wrote:
>
> > && allows the two commands to be written on the same line.
>
> Actually its a semicolon that does that, ie. command1 ; command2
>
> The && is an AND operator. Given the example;
>
>     command1 && command2
>
> If command1 is successful, then command2 is carried out.  If command1
> fails command2 is NOT carried out.

Correct! And that's why I used '&&'. Problem is that I'm still a beginner, had read this up
before writing the scripts and in my haste to post, got it wrong.

'&&' is the optimum choice in the scripts in question.

Ken