From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: RE: PATCH: Re: _match still does not work in _path_files
Date: Tue, 2 Nov 1999 15:54:11 +0100 (MET) [thread overview]
Message-ID: <199911021454.PAA17679@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Tue, 2 Nov 1999 17:17:40 +0300
Andrej Borsenkow wrote:
> Compare:
>
> bor@itsrm2:/tools/src/zsh-cvs/zsh%> zsh -f
> ...
> itsrm2% ls /t/s/z/f*/_<TAB>
> beeps
>
> but
>
> bor@itsrm2:/tools/src/db-2.7.7/build_unix%> zsh-3.1.6 -f
> ...
> itsrm2% ls /t/s/z/f*/_<TAB>
> itsrm2% ls /tools/share/zsh/functions<CURSOR>/_
> functions/ functions.old/
>
> with TAB cycling between functions and functions.old
>
> It is much worse actually; in the above setup as simple as
>
> itsrm2% ls /t/s/z/f/_<TAB>
>
> does not work - it beeps. In 3.1.6 pure I at least get both functions and
> functions.old listed (I am still not quite happy with what happens after the
> second TAB ...)
There was a bug which should be fixed by the patch below. However, the
rest of what I said the last time when you brought this up is still
valid.
Bye
Sven
diff -u oldcompletion/Core/_path_files Completion/Core/_path_files
--- oldcompletion/Core/_path_files Mon Nov 1 09:03:02 1999
+++ Completion/Core/_path_files Tue Nov 2 15:50:27 1999
@@ -316,7 +316,7 @@
# collected as the suffixes to make the completion code expand
# it as far as possible.
- if [[ "$tsuf" = */* ]]; then
+ if [[ "$tpre" = */* ]]; then
PREFIX="${donepath}${linepath}${cpre}${tpre%%/*}"
SUFFIX="/${tsuf#*/}"
else
@@ -390,8 +390,8 @@
done
if [[ -z "$tmp4" ]]; then
- PREFIX="${opre}"
- SUFFIX="${osuf}"
+ PREFIX="${opre}${osuf}"
+ SUFFIX=""
compadd -Qf -p "$linepath${testpath:q}" \
-W "$prepath$realpath$testpath" "$ignore[@]" \
"$addpfx[@]" "$addsfx[@]" "$remsfx[@]" \
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-11-02 14:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-02 14:54 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-10-18 11:19 Sven Wischnowsky
1999-10-18 8:41 Sven Wischnowsky
1999-10-18 8:38 Sven Wischnowsky
1999-10-18 9:50 ` Bart Schaefer
1999-11-02 14:17 ` Andrej Borsenkow
1999-10-15 14:13 Sven Wischnowsky
1999-10-15 14:26 ` Andrej Borsenkow
1999-10-16 11:46 ` 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=199911021454.PAA17679@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).