Hi
Turns out that util-linux is working as described in its manpage. I tried with 
the older implementation (bsdmainutils) too and the same issue persists. So the 
root cause is the default wordlist.
"look" expects the default wordlist to be sorted in a case-insensitive manner 
(which it was earlier) but now it is sorted in the ASCII order.
We can:
- Request the maintainers of wordlist to revert the way they sort the words 
(atleast wamerican)
- Supply our own wordlists to specifically make "look" work, but this will need 
to be in all supported languages and the default wordlist would change based on 
the locale of the user
- run a sort everytime (or better, the first time - but we will have to track 
change in locales) "look" is used in the default way.

Since the first two options are overkill for this, and the last option
can be easily done by the user (sort the exisiting
/usr/share/dict/words, save as another file, set that as the WORDLIST
env) than requiring a change in the util-linux package, I have moved
this bug to "Won't Fix"

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1971425

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

Status in util-linux package in Ubuntu:
  Won't Fix
Status in util-linux source package in Jammy:
  Won't Fix
Status in util-linux source package in Lunar:
  Won't Fix
Status in util-linux package in Debian:
  Confirmed

Bug description:
  In Ubuntu 20.04;
  ~ > look accident
  accident
  accident's
  accidental
  accidental's
  accidentally
  accidentals
  accidents
  In Ubuntu 22.04;
  ~ > look accident
  (nothing)
  ~ > look acc
  Accenture
  Accenture's
  Accra
  Accra's
  Digging deeper; the dictionary at /usr/share/dict/words seems OK.
  If I copy the "look" binary from Ubuntu 20.04 and use it on Ubuntu 22.04 it 
works;
  ~ > ./look accident
  accident
  accidental
  accidentally
  accidental's
  accidentals
  accident's
  accidents

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: bsdextrautils 2.37.2-4ubuntu3
  ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
  Uname: Linux 5.15.0-27-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: XFCE
  Date: Tue May  3 14:19:57 2022
  InstallationDate: Installed on 2018-09-07 (1334 days ago)
  InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 
(20180725)
  SourcePackage: util-linux
  UpgradeStatus: Upgraded to jammy on 2022-05-01 (2 days ago)

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to