[Bug 227706] document that file(1) succeeds when the file doesn't exist
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Oct 2023 14:13:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227706
Benedict Reuschling <bcr@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|New |Closed
Resolution|--- |Overcome By Events
CC| |bcr@FreeBSD.org
--- Comment #3 from Benedict Reuschling <bcr@FreeBSD.org> ---
The EXIT STATUS section on current file(1) versions includes this:
EXIT STATUS
file will exit with 0 if the operation was successful or >0 if an error
was encountered. The following errors cause diagnostic messages, but
don't affect the program exit code (as POSIX requires), unless -E is
specified:
• A file cannot be found
• There is no permission to read a file
• The file type cannot be determined
I think that covers the issue of this PR. Thanks for submitting it, it was
fixed in the meantime. Sorry it took so long to close it.
--
You are receiving this mail because:
You are on the CC list for the bug.