add alias hook for word "systemtap" pointing to systemtap package
Bug #413591 reported by
Martin Olsson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
Triaged
|
Low
|
Unassigned | ||
Bug Description
Apparently "stap" is registered in command-not-found but the word "systemtap" is not.
It's hard to beginners to know that the binary for systemtap is called "stap" so it would be worth adding the word "systemtap" to command-not-found in such a way so that it recommends the systemtap package.
molsson@molsson:~$ systemtap
bash: systemtap: command not found
molsson@molsson:~$ stap
The program 'stap' is currently not installed. You can install it by typing:
sudo apt-get install systemtap
bash: stap: command not found
To post a comment you must log in.
Thanks for your bugreport.
This would require something like a "suggestion" feature. Just adding systemtap as a binary
to the database would not be enough. Otherwise the user installs systemtap, but still has
no binary systemtap and needs to guess what the name is. One solution is to provide a
symlink in the systemtap package itself, then it will be automatically picked up by c-n-f.
The other is something like:
molsson@molsson:~$ systemtap
Systemtap is provided by the systemtap package and the binary is called "stap".
bash: systemtap: command not found
Yet another solution would be to look not only at binaries but also at package names.
Something like:
molsson@molsson:~$ systemtap
There is no binary systemtap, but a package called systemtap that contains the
following binaries: "stap"