Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in case stmt with '('
- X-seq: zsh-users 326
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: hzoli@xxxxxxxxxx (Zoltan Hidvegi)
- Subject: Re: Bug in case stmt with '('
- Date: Mon, 22 Jul 1996 22:23:24 +0100 (BST)
- Cc: segal@xxxxxxxxxx, schaefer@xxxxxxx, zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199607221951.VAA07888@xxxxxxxxxxxxxxxxx> from "Zoltan Hidvegi" at Jul 22, 96 09:51:48 pm
>Unfortunately there is still an incompatibility in case:
>
>case foo in
>( f* | b* ) echo yes
>esac
>
>should print yes but in zsh it works as
>
>case foo in
>\ f*\ |\ b*\ ) echo yes;;
>esac
I was wondering whether that would be the case. It's a serious problem.
>To fix this would be really difficult I think.
It could be easily fixed by modifying glob semantics such that unquoted
whitespace embedded in a pattern is ignored. I doubt that any real
code relies on the current behaviour, which is in any case
undocumented.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author