Mailinglist Archive: opensuse-factory (341 mails)

< Previous Next >
Re: [opensuse-factory] issues with command-not-found speed
  • From: Susanne Oberhauser <froh@xxxxxxxxxx>
  • Date: Tue, 03 Feb 2009 17:08:25 +0100
  • Message-id: <s2itz7b8pvq.fsf@xxxxxxxxxxxxx>
Michal,

I like the /sbin and /usr/sbin lookup.

I've created a feature request for it:
https://features.opensuse.org/305803

I do not agree though to the other suggestion you've made:

Michal Vyskocil <mvyskocil@xxxxxxx> writes:

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
$

If I pretend I was a beginner user, this looks very, very cryptic. The
'hint' suggests to make the message go away (to a plain command not
found) or to become slow as a dead rat.

If I look at a beginner, an average user or an adept, then I'd like
the system response to be

- short (to please the adept user)
- point to full documentation (for the beginner)
- give a poointer to immediate remedy (for the average, forgetful user)

that's why in the fate request, I've usggested an improved message:

Command not found. If this is not a typo, type "man make-it-work" for
help.

The 'make-it-work' man page will then give guidance to a deep level,
while the message is short enough to not annoy anybody.

Running 'make-it-work <commandname>' should then just help to install
the right package


And I agree, the command_not_found_helper should also check /sbin and
/usr/sbin and respond with a message like this in case the command is
there:

"$command" is a privileged command. Try "sudo $command"?


S.
--
Susanne Oberhauser +49-911-74053-574 SUSE -- a Novell Business
OPS Engineering Maxfeldstraße 5
Processes and Infrastructure Nürnberg
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups