[Bash-completion-devel] [bash-completion-Bugs][312220] Test suite bug: partial hostname finger completion failure
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Sun Jan 24 09:36:56 UTC 2010
Bugs item #312220, was changed at 2010-01-16 16:23 by Freddy Vulto
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312220&group_id=100114
>Status: Closed
Priority: 2
Submitted By: Ville Skyttä (scop-guest)
Assigned to: Nobody (None)
Summary: Test suite bug: partial hostname finger completion failure
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number:
Initial Comment:
If a known hosts file contains entries staring with the same letter as the first one returned by compgen -A hostname, the finger test breaks.
$ compgen -A hostname | head -n 1
localhost
$ echo "lala,127.0.0.1 ssh-rsa foo" >> ~/.ssh/known_hosts
This results in "FAIL: Tab should complete partial hostname".
$ echo "lulu,127.0.0.1 ssh-rsa foo" >> ~/.ssh/known_hosts
This (lulu sorts higher than localhost) results in the testcase becoming unresolved (assuming there are no entries in known hosts files that sort lower than localhost in my case).
Shouldn't get_hosts() (or the finger test) be using _known_hosts_real?
----------------------------------------------------------------------
>Comment By: Freddy Vulto (fvu-guest)
Date: 2010-01-24 10:36
Message:
Fixed in commit dde071d:
(testsuite) Fixed finger test
Added test suite function `get_known_hosts' which calls bash's `_known_hosts_real'.
Also the `finger' test "Tab should complete partial hostname" now skips hosts starting with character in COMP_WORDBREAKS leaving that to test for another test case.
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312220&group_id=100114
More information about the Bash-completion-devel
mailing list