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

RE: PATCH: Re: pws-10 RE: zsh-3.1.5-pws-9: _path_files and symbolic links



Should it not be tested in _path_files? What if I want to use other array
rather than cdpath in other function? It is really hard to always remember
to test it before using.

And, BTW, is it not a typo in _path_files:

  liniepath=''

I'd expect it to be linepath (not that it helps much).

/andrej

> That's the result of not testing ig `cdpath' is set.
>
> Bye
>  Sven
>
> diff -u oc/Builtins/_cd Completion/Builtins/_cd
> --- oc/Builtins/_cd	Mon Mar  1 13:12:40 1999
> +++ Completion/Builtins/_cd	Mon Mar  1 13:54:51 1999
> @@ -1,3 +1,7 @@
>  #defcomp cd
>
> -_files -W cdpath -g '*(-/)'
> +if (( $#cdpath )); then
> +  _files -W cdpath -/
> +else
> +  _files -/
> +fi
>
> --
> Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx
>
>



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