Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/bin/sh
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