There seems to be something wrong with the way the ignore-case option is
handled:

   -f, --ignore-case           fold lower case to upper case characters

The option is enabled by default when running `look <word>` and the only
way to disable it is to specify the wordlist as the next positional
parameter.

```
$ look accident
> KO (-f is enabled by default)
$ look accident /usr/share/dict/words
accident
accidental
accidentally
accidental's
accidentals
accident's
accidents
> OK (-f is not enabled)
$ look -f accident /usr/share/dict/words
> KO
```

Also, look was provided by bsdmainutils (i.e., src:bsdmainutils) in
focal but bsdextrautils (i.e., src:util-linux) in impish/jammy. This is
a different implemention. I wonder if the assumption on the sorting
order or the dictionary is the same.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1971425

Title:
  The "look" cli dictionary only sees capitalized words

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1971425/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to