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

[ale] Exiting multi-block shell scripts



Kenneth W Cochran wrote:
> 
> Hi,
> 
> How do I exit a (Bourne) shell script (/bin/sh) that has more
> than 1 while-do?
> 
> Example:
> 
> while ...
> do ...

if [ "$time_to_exit" == "yes" ]; then exit; fi

> done
> 
> while ...
> do ...
> done
> 
> How do I exit the whole thing even if I'm in the 1st while-do?
> 
> Thanks,
> 
> -kc
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.

--
Until later: Geoffrey		esoteric at denali.atlnet.com

Microsoft != Innovation
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.