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

Re: Bug in case stmt with '('



>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