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

Re: Bug with parameter expansion



In article <199911051251.NAA03010@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
  Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> Hm. As far as I know, even though `=' is in `SPECCHARS', it is only
> special if it is at the beginning of a word. So the patch makes it be
> quoted only then.

It's also special just after colon or equal when magicequalsubst is
set.

Z:akr@is27e1u11% Src/zsh -f
is27e1u11% echo :=echo
:=echo
is27e1u11% echo a==echo
a==echo
is27e1u11% setopt magicequalsubst
is27e1u11% echo :=echo
:/bin/echo
is27e1u11% echo a==echo
a=/bin/echo
is27e1u11% 

Maybe, `~' should be treated as `='?
-- 
Tanaka Akira



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