Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3831

Troubleshooting • Re: look giving strange results

$
0
0
Actually ame I did read the man page before posting here.
I chased down the dictionary being used to find it was the 'british english' and switched it to 'american english' then as my first post in this conversation pointed out grep'd that dictionary to see if assess was in there.
Sinse -f, --ignore-case is the default I can see little excuse of look not presenting lower case words in the list beginning with 'ass'.
On your system when you enter 'look ass' do you get lower case as well as upper case entries in the dictionary?
I don't.

Unfortunately the man page gives no clue how to turn off case folding.
mike@RPI4b3:~> look --ignore-case=no ass
look: option '--ignore-case' doesn't allow an argument
Try 'look --help' for more information.
mike@RPI4b3:~> look -f=no ass
look: invalid option -- '='
Try 'look --help' for more information.
mike@RPI4b3:~> look +f ass
look: ass: No such file or directory

All you folks that responded, do any of you see 'assess' in the response to 'look ass'? If so please post any aliases or parameters used to give that result.

mike@RPI4b3:~> sort -d /usr/share/dict/words > t
mike@RPI4b3:~> diff /usr/share/dict/words t
mike@RPI4b3:~>
If I understand correctly, this assures me that the dictionary is sorted as look expects.

mike@RPI4b3:~> ls -l /usr/share/dict/american-english
-rw-r--r-- 1 root root 985084 Jan 19 2022 /usr/share/dict/american-english

This is a relatively new install as in late October '23.

I must admit I'm stumped.

Be well,
Mike

Statistics: Posted by MikeMcClain46 — Sun Feb 11, 2024 6:02 pm



Viewing all articles
Browse latest Browse all 3831

Trending Articles