Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sh vs zsh behavior
- X-seq: zsh-workers 899
- From: "Timothy J. Luoma" <luomat@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- To: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- Subject: Re: sh vs zsh behavior
- Date: Tue, 9 Apr 1996 13:04:43 -0400 (EDT)
- Cc: zsh-workers <zsh-workers@xxxxxxxxxxxxxxx>
- In-reply-to: <199604091655.SAA14656@xxxxxxxxxxxxx>
- Reply-to: luomat@xxxxxxxxxxxxxxxxxxxxxxxxxxx
The best suggestion I think I have in this situation is to use case/esac
case $test in
one|two|three)
echo match
;;
*)
echo no match
;;
esac
I don't know why I didn't just think of that in the first place.
It requires no special syntax or setopts, and allows for easy
expansion/removal of matches.
TjL
--
Timothy J. Luoma <luomat@xxxxxxxxxxxxxxxxxxxxxxxx>
USENET: Please CC this address on replies to my posts, things vanish fast.
NeXT Info available via email! Send message with SUBJECT 'send info'
>>>> Please: No NeXTMail, use MIME for attachments <<<<
Messages sorted by:
Reverse Date,
Date,
Thread,
Author