Date: Fri, 26 Oct 2018 19:50:20 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 232730] usr.bin/file does not return correct exit code on missing input file Message-ID: <bug-232730-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232730 Bug ID: 232730 Summary: usr.bin/file does not return correct exit code on missing input file Product: Base System Version: 11.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: nmingotti@gmail.com Hi, According to "man file", "RETURN CODE" section: -------- file returns 0 on success, and non-zero on error. -------- But this is what happens: -------------- $> file non-existent-file non-existent: cannot open `non-existent' (No such file or directory) $> echo $? 0 -------------- The exit code should not be zero. bye Nicola --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232730-227>