zsh-workers
 help / color / mirror / code / Atom feed
* characters not added in _rsync completion
@ 2004-10-13  5:40 Wayne Davison
  2004-10-13  6:41 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Wayne Davison @ 2004-10-13  5:40 UTC (permalink / raw)
  To: zsh-workers

I've noticed something strange in the _rsync completion in 4.2.1 (I
tested both the debian packaged version of 4.2.1 and the latest CVS):
zsh sometimes fails to add all the common characters that it should
when completing an ambiguous option.  For example:

zsh -f
autoload -U compinit
compinit
rsync --bl<TAB>

The characters "ock" should be added (since the "--block" prefix is
common to both the listed completions), but nothing is added (the user
must either type more characters to remove the ambiguity, or cycle
through the matches with more TAB presses).

Other completions that fail to add common characters:

rsync --ch<TAB>    # should add "ecksum"
rsync --com<TAB>   # should add "p"
rsync --li<TAB>    # should add "nk"
rsync --no<TAB>    # should add "-"
rsync --par<TAB>   # should add "tial"
rsync --ti<TAB>    # should add "me"

(Note that two of those require a very recent rsync that has the
--checksum-seed and --partial-dir options, otherwise there would
be only one option to complete.)

However, most other options behave in the expected manner:

rsync --ba<TAB>    # adds "ckup"
rsync --del<TAB>   # adds "ete"
rsync --exc<TAB>   # adds "lude"
rsync --ig<TAB>    # adds "nore-"
rsync --inc<TAB>   # adds "lude"
rsync --v<TAB>     # adds "er"

Would anyone care to look into this?

..wayne..


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

end of thread, other threads:[~2004-10-15  4:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-13  5:40 characters not added in _rsync completion Wayne Davison
2004-10-13  6:41 ` Bart Schaefer
2004-10-13 16:17   ` Clint Adams
2004-10-13 16:46   ` Wayne Davison
2004-10-13 17:03     ` Wayne Davison
2004-10-15  4:18     ` Bart Schaefer

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