1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

Add a test for cascaded case statement.

This commit is contained in:
Bart Schaefer 2000-06-17 17:13:59 +00:00
parent af1339bacf
commit 0d22935756
2 changed files with 18 additions and 0 deletions

View file

@ -3,6 +3,8 @@
* 11956: Src/loop.c: Fix off-by-one error in wordcode pc executing
case statement fall-through.
* unposted: Test/01grammar.ztst: Add a test for 11956.
2000-06-16 Clint Adams <schizo@debian.org>
* 11951: Completion/Debian/_dpkg: replaced _arguments -A

View file

@ -184,6 +184,22 @@
0:`case' loop, new syntax
>2
word=Hilary
case $word in
(Michaelmas) print 0
;;
(Hilary) print 1
;&
(Trinity) print 2
;&
(*) print 3
;;
esac
0:`case' loop, new syntax, cascaded
>1
>2
>3
## This doesn't work, because zsh tries to read from the terminal
## even in a non-interactive shell. The manual implies it always reads
## from stdin, even in an interactive shell.