zsh-workers
 help / color / mirror / code / Atom feed
* file completion problem in 4.3.9-dev-2
@ 2009-04-21 15:37 Greg Klanderman
  2009-05-27 16:45 ` Richard Hartmann
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Klanderman @ 2009-04-21 15:37 UTC (permalink / raw)
  To: Zsh list


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-28  8:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-21 15:37 file completion problem in 4.3.9-dev-2 Greg Klanderman
2009-05-27 16:45 ` Richard Hartmann
2009-05-27 18:46   ` Greg Klanderman
2009-05-28  8:50     ` Richard Hartmann

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).