Bug 1123591

Summary: command-not-found proposes c++ needlessly
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: jonathan, kalevlember, rdieter, rhughes, smparrish, ville.skytta, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-11 11:28:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zbigniew Jędrzejewski-Szmek 2014-07-27 01:17:38 UTC
Description of problem:
I have gcc installed.

$ which gcc
/usr/bin/gcc

When I type 'gcc <TAB><TAB>' I see the following prompt:

$ gcc Install package 'gcc-c++' to provide command 'c++'? [N/y] 

I don't know why command-not-found thinks I need c++, when I request gcc.

Version-Release number of selected component (if applicable):
PackageKit-command-not-found-0.9.4-2.fc21.x86_64

How reproducible:
100%

Comment 1 Richard Hughes 2014-07-28 17:23:18 UTC
Is this with bash-completion installed?

Comment 2 Zbigniew Jędrzejewski-Szmek 2014-07-28 17:27:35 UTC
Yes, bash-completion-1:2.1-5.fc21.noarch. Without bash-completion I get a list of files, as expected.

Comment 3 Ville Skyttä 2015-01-11 11:28:24 UTC
More discussion in bug 1164410

*** This bug has been marked as a duplicate of bug 1164410 ***