From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id DAA22878 for ; Wed, 10 Apr 1996 03:22:52 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id NAA18511; Tue, 9 Apr 1996 13:04:57 -0400 (EDT) Resent-Date: Tue, 9 Apr 1996 13:04:57 -0400 (EDT) Date: Tue, 9 Apr 1996 13:04:43 -0400 (EDT) From: "Timothy J. Luoma" Reply-To: luomat@cedman.remote.Princeton.EDU To: Zoltan Hidvegi Cc: zsh-workers Subject: Re: sh vs zsh behavior In-Reply-To: <199604091655.SAA14656@turan.elte.hu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"YcMNt3.0.9X4.uYfQn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/899 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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 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 <<<<