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 of the dictionary is the same.
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.
``` dict/words dict/words
$ look accident
> KO (-f is enabled by default)
$ look accident /usr/share/
accident
accidental
accidentally
accidental's
accidentals
accident's
accidents
> OK (-f is not enabled)
$ look -f accident /usr/share/
> 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 of the dictionary is the same.