From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: 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 14:39:23 +0100 (MET) [thread overview]
Message-ID: <199903011339.OAA15258@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Mon, 1 Mar 1999 16:24:51 +0300
Andrej Borsenkow wrote:
> 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.
I thought about it, too, but decided against it because:
- cdpath is special: if empty or unset, `.' is used
- in other cases you will have no tests, if the array containing the
dirs is empty you probably won't want the files in `.'; I use `-W'
only for `cd', so I'm not sure what people would like to have here
(producing no matches due to an empty `-W'-array looked like a good
hint that something went wrong); I could be convinced otherwise,
though (the only other place where `-W' is currently used is `_mh'
which I don't use (since I don't use `mh'), so I have to ask: would
the automatic-use-current-dir behavior be correct there?)
> And, BTW, is it not a typo in _path_files:
>
> liniepath=''
>
> I'd expect it to be linepath (not that it helps much).
Yes, thanks.
Bye
Sven
diff -u oc/Core/_path_files Completion/Core/_path_files
--- oc/Core/_path_files Mon Mar 1 13:13:16 1999
+++ Completion/Core/_path_files Mon Mar 1 14:31:07 1999
@@ -150,7 +150,7 @@
# If the string does not start with a `~' we don't remove a prefix from the
# string.
- liniepath=''
+ linepath=''
realpath=''
if [[ "$str[1]" = / ]]; then
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-03-01 13:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-01 13:39 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-03-01 15:46 Sven Wischnowsky
1999-03-01 14:45 Sven Wischnowsky
1999-03-01 13:45 Sven Wischnowsky
1999-03-01 14:46 ` Peter Stephenson
1999-03-01 13:03 Sven Wischnowsky
1999-03-01 13:24 ` Andrej Borsenkow
1999-03-01 14:26 ` Andrej Borsenkow
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=199903011339.OAA15258@beta.informatik.hu-berlin.de \
--to=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).