Bug 550954

Summary: PackageKit-command-not-found should output to stderr
Product: [Fedora] Fedora Reporter: Michael Chapman <redhat-bugzilla>
Component: PackageKitAssignee: Richard Hughes <richard>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: rhughes, richard, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-05 09:40:07 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 Michael Chapman 2009-12-28 09:31:18 UTC
Description of problem:

PackageKit-command-not-found writes its output to stdout. If stdout is being redirected or piped, no visible output is produced. This could be confused with successful execution of the command.

For consistency with bash's normal "command not found" error messages, it should write to stderr instead.

Version-Release number of selected component (if applicable):

PackageKit-command-not-found-0.5.4-0.4.20091029git.fc12.i686

How reproducible: Always

Steps to Reproduce:

With the command-not-found handler enabled:
$ abc >stdout 2>stderr
$ cat stdout 
Command not found. 
$ cat stderr 

With it disabled:
$ ( unset command_not_found_handle; abc >stdout 2>stderr ) 
$ cat stdout 
$ cat stderr 
-bash: abc: command not found

Comment 1 Richard Hughes 2010-01-05 09:40:07 UTC

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