Bug 247950

Summary: Programs completion
Product: [Fedora] Fedora Reporter: Jakub 'Livio' Rusinek <liviopl.pl>
Component: bash-completionAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: sheltren
Target Milestone: ---Keywords: MoveUpstream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-12 17:11:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jakub 'Livio' Rusinek 2007-07-12 08:43:01 UTC
Description of problem:

I think, bash should tell us, what command (package) to run (install).
It will make our life faster and nicer.

How reproducible:

Run from bash program, which is not installed. You'll only see "command not found".
  
Actual results:

You'll only see "command not found", when program is not installed.

Expected results:

Completion on about package/command.

Comment 1 Ville Skyttä 2007-07-12 17:11:40 UTC
Hm, so if a user types "foo" and hits TAB, if there are no things installed that
start with "foo", bash-completion would invoke 'repoquery --file "/usr/bin/foo*"'?

I don't think that's feasible.  First, running repoquery even with all needed
repodata files locally available takes much too long for this purpose, and even
if it were faster, I don't see how it would be useful to "complete" let's say
"foo" TAB to "foofoomatic-0:3.0.2-47.1.fc7.x86_64".  And completing it to "yum
install foomatic-0:3.0.2-47.1.fc7.x86_64" would be dangerous as it would most
likely change the meaning of the "foo" command the user intended when he started
to type it.

Anyway, if you disagree, this is a feature request which would be better
directed at the upstream bash-completion author instead of its Fedora packagers.