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
- X-seq: zsh-workers 5575
- From: "Andrej Borsenkow" <borsenkow.msk@xxxxxx>
- To: "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: PATCH: Re: pws-10 RE: zsh-3.1.5-pws-9: _path_files and symbolic links
- Date: Mon, 1 Mar 1999 16:24:51 +0300
- Importance: Normal
- In-reply-to: <199903011303.OAA14813@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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