Public bug reported:
Binary package hint: command-not-found
Bug #129257 fixes the general case of printing error messages to
standard output, but the code which deals with an incorrect PATH still
prints to standard output.
vnix$ PATH=/sbin:/bin:/usr/games
vnix$ lesspipe
Command 'lesspipe' is available in '/usr/bin/lesspipe'
The command could not be located because '/usr/bin' is not included in the PATH
environment variable.
bash: lesspipe: command not found
vnix$ lesspipe >/dev/null
bash: lesspipe: command not found
vnix$ lesspipe 2>/dev/null
Command 'lesspipe' is available in '/usr/bin/lesspipe'
The command could not be located because '/usr/bin' is not included in the PATH
environment variable.
vnix$ /usr/lib/command-not-found --version
0.2
vnix$ dpkg -l command-not-found
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii command-not-fo 0.2.8ubuntu2 Suggest installation of packages in interact
vnix$ $ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"
** Affects: command-not-found (Ubuntu)
Importance: Undecided
Status: New
--
Still prints to stdout if problem is with PATH
https://bugs.launchpad.net/bugs/212723
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs