zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <borsenkow.msk@sni.de>
To: "Sven Wischnowsky" <wischnow@informatik.hu-berlin.de>,
	<zsh-workers@sunsite.auc.dk>
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	[thread overview]
Message-ID: <003c01be63e6$e2fcd180$21c9ca95@mowp.siemens.ru> (raw)
In-Reply-To: <199903011303.OAA14813@beta.informatik.hu-berlin.de>

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@informatik.hu-berlin.de
>
>


  reply	other threads:[~1999-03-01 13:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-01 13:03 Sven Wischnowsky
1999-03-01 13:24 ` Andrej Borsenkow [this message]
1999-03-01 14:26 ` Andrej Borsenkow
1999-03-01 13:39 Sven Wischnowsky
1999-03-01 13:45 Sven Wischnowsky
1999-03-01 14:46 ` Peter Stephenson
1999-03-01 14:45 Sven Wischnowsky
1999-03-01 15:46 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='003c01be63e6$e2fcd180$21c9ca95@mowp.siemens.ru' \
    --to=borsenkow.msk@sni.de \
    --cc=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).