Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in case stmt with '('
- X-seq: zsh-users 329
- From: segal@xxxxxxxxxx (Morris M. Siegel)
- To: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- Subject: Re: Bug in case stmt with '('
- Date: Mon, 22 Jul 1996 17:56:15 -0400
- Cc: hzoli@xxxxxxxxxx, zsh-users@xxxxxxxxxxxxxxx, schaefer@xxxxxxx
- In-reply-to: Zefram <A.Main@xxxxxxxxxxxxxxxxx> "Re: Bug in case stmt with '('" (Jul 22, 10:27pm)
- References: <17793.199607222127@xxxxxxxxxxxxxxxxxxxxxxx>
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