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

Re: Bug in case stmt with '('



>I confess to having forgotten about the empty pattern.  Using null syntax
>to implicitly denote the empty pattern in a script doesn't enhance readability
>in any case, and I think zsh syntax would be safer and less confusing if the
>empty pattern had to be denoted with the explicit syntax "()".

Does POSIX require that a completely empty pattern be allowed?  sh and
ksh don't like it, and zsh only allows it where there's a |.  I don't
see any problem with producing a parse error, and requiring an explicit
empty pattern.

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author