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

Re: Bug in case stmt with '('



On Jul 22, 10:27pm, Zefram wrote:
> Subject: 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
>-- End of excerpt from Zefram

To tell the truth, I have no idea what POSIX says about empty patterns.
It seems that your views on the subject coincide with mine.

-- Morrie Siegel



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