On Sun, 29 Aug 1999 12:40:20 +0200, Leif Neland wrote:

> if isyes ${thisvariable}
> 
> case $1 of
> [Yy][Ee][Ss])
>   exit 0
>   ;;
> *)
>   exit 1
>   ;;
> esac

I hope you mean "in" instead of "of" and "return" instead of "exit". :-)

I like this. One of the reasons I like it so much is because it will
make Doug's changes more friendly towards a future migration to a new
case-insensitive test(1) comparison (or even better, new case-handling
sh(1) variable expansions) easier.

Ciao,
Sheldon.


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to