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

Re: PATH handling broken in zsh 3.1.4



C. v. Stuckrad wrote:
>I just noticed, that zsh *ignores* empty fields in
>'path' (created via 'PATH') instead of implying a 'dot'.

No it doesn't.  It treats the entries as meaning the current directory.

>'csh' does: setenv PATH bla:
>            echo $path
>            bla .

zsh doesn't actually translate "" -> "." when setting the path, however.

>'zsh' ignores the trailing colon, and even drops colons when using
>'vared PATH' on a Path containig empty fields. Like:
>'export PATH=bla::bla'; vared path

vared on an array variable is a lossy process.  Try "vared PATH" instead.

-zefram



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