Mailinglist Archive: opensuse-factory (341 mails)

< Previous Next >
Re: [opensuse-factory] issues with command-not-found speed
  • From: Michal Vyskocil <mvyskocil@xxxxxxx>
  • Date: Mon, 2 Feb 2009 13:01:24 +0100
  • Message-id: <200902021301.24876.mvyskocil@xxxxxxx>
On Sunday 01 of February 2009 21:21:33 Gerald Pfeifer wrote:
On Thu, 11 Dec 2008, Susanne Oberhauser wrote:
Command not found. If this is not a typo, see make-it-work(1) for
help.

And then the make-it-work man page will tell you right away to run
"make-it-work commandname' to locate and install the package providing
fancytool.

Seasoned shell kiddies will go one back in history, prefix their last
command with 'make-it-work ' and have fun...

Problem is that seasoned shell kiddies don't know about make-it-work command,
just because they're kiddies.

Better option is change the default behavior of c-n-f handler. On a first run
it could print a hint how to activate it, or how to remove it:

$ cmd
Command 'cmd' not found. To activate the hint type
echo "export command_not_found_handle=verbose" >> ~/.bashrc; source ~/.bashrc
or disable it by
echo "unset commad_not_found_handle" >> ~/.bashrc; source ~/.bashrc
$


imho the current solution is solving a problem that doesn't really
exist (pretend all software is preinstalled) and creates a new one
(lag).

I had many troubles with commands in /usr/sbin, because users responses - it
wrote me command not found - even if I told they must use a root. So c-n-f
handler warns if command exists and is in /sbin /usr/sbin, which solves those
problems. At least this problem is real and exists.

Best regards
Michal Vyskocil
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
References