From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: Use of named directories in completions broken.
Date: Wed, 2 May 2001 10:57:27 +0200 (MET DST) [thread overview]
Message-ID: <200105020857.KAA03759@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <Tc0a88d01533c851c99@mailsweeper01.cambridgesiliconradio.com>
Peter Stephenson wrote:
> Still having problems with this...
>
> % echo ~dev/<TAB>
>
> does menu completion as expected.
>
> % echo ~dev/sr<TAB>
>
> should complete to ~dev/src/ but expands instead (then does completion on
> that the next time round). Similar problem with plain ~/ . Here's the
> _expand part of the trace for the first example. Should that pattern on
> line 36 begin (~*/*| rather than (~*/| ?
Ouch. Yes.
Bye
Sven
Index: Completion/Base/Completer/_expand
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Completer/_expand,v
retrieving revision 1.4
diff -u -r1.4 _expand
--- Completion/Base/Completer/_expand 2001/04/30 11:09:50 1.4
+++ Completion/Base/Completer/_expand 2001/05/02 08:57:18
@@ -33,7 +33,7 @@
# [[ "$word" = (\~*/|\$(|[=~#^+])[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]|\$\{*\}?)[^\$\{\}\(\)\<\>?^*#~]# ]] &&
zstyle -T ":completion:${curcontext}:" suffix &&
- [[ "$word" = (\~*/|*\$(|[=~#^+])[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]|*\$\{*\}?) &&
+ [[ "$word" = (\~*/*|*\$(|[=~#^+])[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]|*\$\{*\}?) &&
"${(e)word}" != *[][^*?\(\)\<\>\{\}\|]* ]] &&
return 1
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
prev parent reply other threads:[~2001-05-02 8:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-30 10:37 Peter Stephenson
2001-04-30 11:08 ` PATCH: " Sven Wischnowsky
2001-04-30 11:19 ` Peter Stephenson
2001-04-30 11:25 ` Sven Wischnowsky
2001-04-30 15:47 ` Peter Stephenson
2001-05-02 8:57 ` Sven Wischnowsky [this message]
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=200105020857.KAA03759@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.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).