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

Re: ${...%%=*} problem



Andrej Borsenkow wrote:

> bor@itsrm2% print ${foo%%=*}
> zsh: * not found
> 
> Why?

Because it does expansion, include the one after an equal sign:

  % echo =*
  zsh: * not found

Yeah, I know, this seems silly, and I had to learn that the hard way,
too (when starting with the completion system I sometimes forgot to
quote that `=' with a backslash...).


Bye
  Sven


-- 
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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