Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: sh vs zsh behavior



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