look command prints only words with capital first letter

Bug #2040936 reported by Daniel Barrett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

The command /usr/bin/look prints only words that begin with an upper-case letter, even if the search string begins with a lower-case letter.

$ look big
BigQuery
BigQuery's
Bigfoot
Bigfoot's
Biggles
Biggles's

This is incorrect behavior. "look" should also print words like big, bigger, biggest.

$ grep '^big' /usr/share/dict/wordsbig
bigamist
bigamist's
bigamists
bigamous
...

Adding the -f option does not change the behavior.

Bug reproduced on two different Ubuntu 22.04 systems.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: bsdextrautils 2.37.2-4ubuntu3
ProcVersionSignature: Ubuntu 5.15.0-87.97-generic 5.15.122
Uname: Linux 5.15.0-87-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Wed Oct 25 20:36:39 2023
InstallationDate: Installed on 2020-02-29 (1334 days ago)
InstallationMedia: Kubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
SourcePackage: util-linux
UpgradeStatus: Upgraded to jammy on 2022-12-03 (326 days ago)

Revision history for this message
Daniel Barrett (dbarrett-m) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.