[Bash-completion-devel] finger test suite failure

Ville Skyttä ville.skytta at iki.fi
Fri Nov 20 21:18:45 UTC 2009


On Friday 20 November 2009, Freddy Vulto wrote:

> Can you email these lines from your `dbg.log' showing the failing matches
>  just above the test yielding a FAIL?  Maybe there's a sort order mismatch
>  between tcl/expect & bash?  We should be able to tell from these lines.

Close, but not quite: AFAIU the issue is that _known_hosts_real returns no 
duplicates in its list but the tcl/expect regexp has a bunch of them 
(test at localhost and test at localhost.localdomain twice):

----
expect: does "test at localhost                test at localhost4               
test at localhost4.localdomain4  test at localhost6\r\ntest at localhost6.localdomain6  
test at localhost.localdomain\r\n/@finger test at localhost" (spawn_id exp7) match 
regular expression 
"^test at localhost\s+test at localhost\s+test at localhost4\s+test at localhost4\.localdomain4\s+test at localhost6\s+test at localhost6\.localdomain6\s+test at localhost\.localdomain\s+test at localhost\.localdomain\s+"? 
no
expect: timed out
FAIL: Tab should complete partial hostname
----

I have one entry for "localhost" in my SSH known hosts files, avahi not 
running, and these in /etc/hosts, perhaps that's where the dupes come from:
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6



More information about the Bash-completion-devel mailing list