apt changelog outputs "usage: which [-as] program ..." if variable PAGER doesn't exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When variable PAGER isn't in the environment, apt changelog always outputs this message:
usage: which [-as] program ...
but it goes on and shows the changelog with less. Most certainly it's running:
which $PAGER
without checking first if PAGER is empty.
sensible-browser has the same bug, but with variable BROWSER:
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: apt 1.6.3
ProcVersionSign
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Jul 19 09:35:46 2018
InstallationDate: Installed on 2018-04-28 (81 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
Cannot reproduce. APT does not run which, so it's definitely not apts problems.