Bug 550954 - PackageKit-command-not-found should output to stderr
Summary: PackageKit-command-not-found should output to stderr
Keywords:
Status: CLOSED DUPLICATE of bug 545220
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-28 09:31 UTC by Michael Chapman
Modified: 2010-01-05 09:40 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-01-05 09:40:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.