zsh-workers
 help / color / mirror / code / Atom feed
* Completion/correction and _path_files
@ 2008-05-21 14:34 Bart Schaefer
  2008-06-02 16:40 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2008-05-21 14:34 UTC (permalink / raw)
  To: zsh-workers

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.


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

end of thread, other threads:[~2008-06-04  9:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-21 14:34 Completion/correction and _path_files Bart Schaefer
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

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