zsh-workers
 help / color / mirror / code / Atom feed
From: Greg Klanderman <gak@klanderman.net>
To: Zsh list <zsh-workers@sunsite.dk>
Subject: file completion problem in 4.3.9-dev-2
Date: Tue, 21 Apr 2009 11:37:06 -0400	[thread overview]
Message-ID: <18925.59426.988752.584683@gargle.gargle.HOWL> (raw)


I see this issue more generally with my complete init files loaded.
Under the minimal configuration below, the problem is not as
reproducible, for example substituting "ls" for "cat", or completing
"temp/tom" from the next directory level up do not reproduce it,
whereas they do with my init files.

The problem seems to have to do with the space in the directory names;
if I remove the spaces, or substitute a character that does not need
to be escaped, I cannot reproduce the problem.

| [~] greg@lwm| zsh -f
| lwm% echo $ZSH_VERSION
| 4.3.9-dev-2
| lwm% echo $ZSH_PATCHLEVEL
| 1.4656
| lwm% rm .zcompdump
| lwm% autoload -U compinit
| lwm% compinit -u
| lwm% zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' '+ l:|=* r:|=*'
| lwm% setopt noautomenu
| lwm% cd temp
| lwm% ls -l
| total 20
| drwxr-xr-x  2 greg greg 4096 Apr 21 10:28 Buffalo Tom
| drwxr-xr-x  2 greg greg 4096 Apr 21 10:28 Flanagan, Tommy
| drwxr-xr-x  2 greg greg 4096 Apr 21 10:28 Petty, Tom
| drwxr-xr-x  2 greg greg 4096 Apr 21 10:28 Russell, Tom
| drwxr-xr-x  2 greg greg 4096 Apr 21 10:28 Waits, Tom
| lwm%                  

Now if I type "cat tom" and hit <Control-d> to list completions, I see:

| lwm% cat tom
| Buffalo\ Tom/      Flanagan,\ Tommy/  Petty,\ Tom/       Russell,\ Tom/     Waits,\ Tom/

OK, now hit <tab> to complete and I get:

| lwm% cat \ Tom

OK, now <Control-d> lists:

| lwm% cat \ Tom
| Buffalo\ Tom/      Flanagan,\ Tommy/  Petty,\ Tom/       Russell,\ Tom/     Waits,\ Tom/

OK, now <tab> again *incorrectly* completes to:

| lwm% cat o\ Tom

thanks,
Greg


             reply	other threads:[~2009-04-21 15:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-21 15:37 Greg Klanderman [this message]
2009-05-27 16:45 ` Richard Hartmann
2009-05-27 18:46   ` Greg Klanderman
2009-05-28  8:50     ` Richard Hartmann

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=18925.59426.988752.584683@gargle.gargle.HOWL \
    --to=gak@klanderman.net \
    --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).