zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Completion/correction and _path_files
Date: Wed, 21 May 2008 07:34:12 -0700	[thread overview]
Message-ID: <080521073412.ZM11504@torch.brasslantern.com> (raw)

Starting in the root of the zsh source tree, if I do this:

schaefer<501> ls Scr<TAB>

It gets corrected:

schaefer<501> ls Src/
Completing corrections
Src/
Completing original
Scr

If instead I start with:

schaefer<502> ls s/a/m<TAB>

That too gets corrected (lower -> upper) and completed:

schaefer<502> ls Src/Aliases/Makefile

However, if I start with this:

schaefer<502> ls Scr/
No matches for `files' or `corrections'

Looking at _complete_debug output, _path_files appears to have found the
correction and at line 372 populates tmp1 with all the files in the Src
subdirectory, but then discards the "Src/" prefix from all those files
at about line 669 and attempts to compare the files themselves to "Scr"
(compfiles -r at line 514) which of course fails.

This seems like a bug.  At some earlier point "Src/" should have been
added as a possible completion; the descent into the directory was not
necessary.  Even with

schaefer<502> ls Scr/A
No matches for `files' or `corrections'

I *think* it's comparing "Aliases" to the entire string "Scr/A", but
it begins to get difficult to follow.


             reply	other threads:[~2008-05-21 14:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-21 14:34 Bart Schaefer [this message]
2008-06-02 16:40 ` Peter Stephenson
2008-06-02 17:02   ` Peter Stephenson
2008-06-02 17:07     ` Peter Stephenson
2008-06-04  9:29       ` Peter Stephenson

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=080521073412.ZM11504@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).