Bug 654204 - wrong exit status
Summary: wrong exit status
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 14
Hardware: x86_64
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: 2010-11-17 07:20 UTC by Arun Tomar
Modified: 2012-08-16 20:00 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-16 20:00:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Arun Tomar 2010-11-17 07:20:33 UTC
Description of problem:
Exit status shows success (value 0) even if the command was not found.

Version-Release number of selected component (if applicable):
Fedora release 14 (Laughlin)
Linux localhost.localdomain 2.6.35.6-45.fc14.x86_64 #1 SMP Mon Oct 18 23:57:44 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:


Steps to Reproduce:
1. run any command that doesn't exists in the system (eg: llll), it should give an error "command not found"
2. print the exit status (echo $?)=> it should show a non zero value, but shows a zero value.
3. uninstalling the "packagekit-command-not-found" package solves the problem.
  
Actual results:
0

Expected results:
non zero value

Additional info:
uninstalling the "packagekit-command-not-found" package solves the problem.

Comment 1 Richard Hughes 2010-11-17 08:52:47 UTC
Can you test http://koji.fedoraproject.org/koji/buildinfo?buildID=205035 please. Thanks.

Comment 2 Arun Tomar 2010-11-17 10:14:39 UTC
hi!

even after installing the latest packages from the build it's not working.

[root@localhost Downloads]# ls -l Pack*.rpm
-rw-rw-r--. 1 arun arun 558560 Nov 17 15:35 PackageKit-0.6.10-3.fc14.x86_64.rpm
-rw-rw-r--. 1 arun arun  43716 Nov 17 15:29 PackageKit-command-not-found-0.6.10-3.fc14.x86_64.rpm
-rw-rw-r--. 1 arun arun  32764 Nov 17 15:37 PackageKit-device-rebind-0.6.10-3.fc14.x86_64.rpm
-rw-rw-r--. 1 arun arun 116968 Nov 17 15:35 PackageKit-glib-0.6.10-3.fc14.x86_64.rpm
-rw-rw-r--. 1 arun arun  32896 Nov 17 15:37 PackageKit-gstreamer-plugin-0.6.10-3.fc14.x86_64.rpm
-rw-rw-r--. 1 arun arun  32152 Nov 17 15:37 PackageKit-gtk-module-0.6.10-3.fc14.x86_64.rpm
-rw-rw-r--. 1 arun arun  99980 Nov 17 15:36 PackageKit-yum-0.6.10-3.fc14.x86_64.rpm


[root@localhost Downloads]# rpm -Uvh PackageKit-*
Preparing...                ########################################### [100%]
   1:PackageKit-glib        ########################################### [ 14%]
   2:PackageKit-yum         ########################################### [ 29%]
   3:PackageKit             ########################################### [ 43%]
   4:PackageKit-command-not-########################################### [ 57%]
   5:PackageKit-device-rebin########################################### [ 71%]
   6:PackageKit-gstreamer-pl########################################### [ 86%]
   7:PackageKit-gtk-module  ########################################### [100%]


yum list packagekit*
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Adding en_US to language list
Loading mirror speeds from cached hostfile
 * fedora: fedora.glug-nith.org
 * rpmfusion-free: mirror.cse.iitk.ac.in
 * rpmfusion-free-updates: mirror.cse.iitk.ac.in
 * rpmfusion-nonfree: mirror.cse.iitk.ac.in
 * rpmfusion-nonfree-updates: mirror.cse.iitk.ac.in
 * updates: mirror.cse.iitk.ac.in
Installed Packages
PackageKit.x86_64                                                                         0.6.10-3.fc14                                                        installed
PackageKit-command-not-found.x86_64                                                       0.6.10-3.fc14                                                        installed
PackageKit-device-rebind.x86_64                                                           0.6.10-3.fc14                                                        installed
PackageKit-glib.x86_64                                                                    0.6.10-3.fc14                                                        installed
PackageKit-gstreamer-plugin.x86_64                                                        0.6.10-3.fc14                                                        installed
PackageKit-gtk-module.x86_64                                                              0.6.10-3.fc14                                                        installed
PackageKit-yum.x86_64                                                                     0.6.10-3.fc14                                                        installed
PackageKit-yum-plugin.x86_64                                                              0.6.10-3.fc14                                                        installed

from a new terminal:

[arun@localhost Desktop]$ llllll
bash: llllll: command not found...
[arun@localhost Desktop]$ echo $?
0


regds,
Arun.

Comment 3 Fedora End Of Life 2012-08-16 20:00:47 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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