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

Re: parsing empty alternatives: case foo|) :;;



A bit more experimentation reveals it's just the empty string that's
confusing it.  If you put something between the | and the ) it works.

case foo in
foo|'') print Yes
;;
esac

works, also replacing '' by $empty works, but removing it completely doesn't.

I think this might be some fix-up code that got added for the old case
(nothing to do with pipes in that case).

Yes
pws



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