[ale] Exiting multi-block shell scripts

Wandered Inn esoteric at denali.atlnet.com
Wed Jun 28 07:39:36 EDT 2000


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.





More information about the Ale mailing list