[Bug 287440] sh(1): cd "" shall result in error

[email protected] Mon, 16 Jun 2025 16:16:09 +0000
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287440

Garrett Wollman <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Affects Only Me             |Affects Some People
                 CC|                            |[email protected]

--- Comment #2 from Garrett Wollman <[email protected]> ---
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.