[BusyBox 0006274]: head does not exit with exitcode of 1 when file not found (mismatch with coreutils)

bugs at busybox.net bugs at busybox.net
Tue Nov 11 21:41:33 UTC 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=6274 
====================================================================== 
Reported By:                pgbovine
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   6274
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             11-11-2008 13:41 PST
Last Modified:              11-11-2008 13:41 PST
====================================================================== 
Summary:                    head does not exit with exitcode of 1 when file not
found (mismatch with coreutils)
Description: 
head is supposed to exit with exitcode of 1 (or at least non-zero) when
there is an error.

Coreutils:
$ head ''
head: cannot open `' for reading: No such file or directory
$ echo $?
1

(proper exitcode of 1 for error)

Busybox:
$ ./busybox head ''
head: : No such file or directory
$ echo $?
0

(error message printed but still exits with 0 to signify success)
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-11-08 13:41  pgbovine       New Issue                                    
11-11-08 13:41  pgbovine       Status                   new => assigned     
11-11-08 13:41  pgbovine       Assigned To               => BusyBox         
======================================================================




More information about the busybox-cvs mailing list