[Bug 287440] sh(1): cd "" shall result in error
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 287440] sh(1): cd "" shall result in error"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Jun 2025 16:16:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287440
Garrett Wollman <wollman@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|Affects Only Me |Affects Some People
CC| |wollman@FreeBSD.org
--- Comment #2 from Garrett Wollman <wollman@FreeBSD.org> ---
Historic BSD (and, I think, Seventh Edition Research UNIX) behavior was to
treat "" as equivalent to "." POSIX forbade this, and FreeBSD changed namei()
to comply quite some time ago now. It seems very astonishing that chdir("")
would correctly result in [ENOENT] but system("cd ''") would not raise an
error.
--
You are receiving this mail because:
You are the assignee for the bug.