NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/59565 CVS commit: src/bin/sh
The following reply was made to PR standards/59565; it has been noted by GNATS.
From: "Robert Elz" <kre%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/59565 CVS commit: src/bin/sh
Date: Tue, 12 Aug 2025 00:32:17 +0000
Module Name: src
Committed By: kre
Date: Tue Aug 12 00:32:16 UTC 2025
Modified Files:
src/bin/sh: cd.c
Log Message:
PR standards/59565 - cd "" is now an error, not == cd .
POSIX 2024 requires that cd "" generate an error message,
and fail.
Until now shells (including this one) have typically equated
it to "cd ." as in the distant past, a lookup of "" as a path
name would return the current directory (aka ".").
From now on, we generate an error, as specified.
(For this commit, the error message is kind of pathetic,
but it is at least there - that will be fixed in a
subsequent commit.)
To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/bin/sh/cd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index