Package: bsdextrautils
Version: 2.36-3+b1

look's behavior became really unpredictable when it migrated from
bsdmainutils to util-linux.

$ look achi
Achille
Achille's
Achillean
Achilles
Achilles's
Achitophel
$ grep -ci ^achi /usr/share/dict/words
36
$

This is just one example but sometimes it works and sometimes it
doesn't.  It tends to behave consistently for a given prefix, but if
it chooses capitalized words or not varies (locale makes no difference
that I can see).  eg:

$ look cra | wc -l
518
$ grep -ci ^cra /usr/share/dict/words 
609
$ diff -u <(grep -i ^cra /usr/share/dict/words) <(look cra) | head
--- /dev/fd/63  2020-10-31 08:00:51.587099984 +0000
+++ /dev/fd/62  2020-10-31 08:00:51.587099984 +0000
@@ -1,94 +1,3 @@
-Crabbe
-Crabbe's
-Craborchard
-Craborchard's
-Crabtree
-Crabtree's
-Cracker

-- 
Jamie Heilman                     http://audible.transient.net/~jamie/

Reply via email to