The following issue has been SUBMITTED. ====================================================================== http://austingroupbugs.net/view.php?id=1119 ====================================================================== Reported By: mhjacobson Assigned To: ajosey ====================================================================== Project: 1003.1(2008)/Issue 7 Issue ID: 1119 Category: Shell and Utilities Type: Enhancement Request Severity: Objection Priority: normal Status: Under Review Name: Matt Jacobson Organization: User Reference: Section: file Page Number: 0 Line Number: 0 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2017-02-15 01:48 UTC Last Modified: 2017-02-15 01:48 UTC ====================================================================== Summary: When the file named by the <file> operand does not exist, `file` should not exit with zero status Description: $ file /this/does/not/exist /this/does/not/exist: cannot open `/this/does/not/exist' (No such file or directory) $ echo $? 0
This is apparently conformant, but it is nonsensical and divergent from the specification for `ls`, `cat`, etc. Desired Action: `file` should exit with nonzero status when the file named by the <file> parameter cannot be found. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2017-02-15 01:48 mhjacobson New Issue 2017-02-15 01:48 mhjacobson Status New => Under Review 2017-02-15 01:48 mhjacobson Assigned To => ajosey 2017-02-15 01:48 mhjacobson Name => Matt Jacobson 2017-02-15 01:48 mhjacobson Section => file 2017-02-15 01:48 mhjacobson Page Number => 0 2017-02-15 01:48 mhjacobson Line Number => 0 ======================================================================