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 01:04:35 +0000
Module Name: src
Committed By: kre
Date: Tue Aug 12 01:04:35 UTC 2025
Modified Files:
src/bin/sh: cd.c
Log Message:
Improve error messages from cd builtin
Have cd indicate (particularly for when CDPATH is in use,
but also in other cases) which path name was attempted
and failed, and why it failed. For CDPATH uses, when
(if) the cd eventually fails, prefer the first entry in
which the requested destination path is located (when
the chdir() to it fails), or if there is none of those,
the first lookup which failed to determine if the path
exists there or not (ie: not ENOENT).
If the all attempts return ENOENT simply report the arg
given (after "cd -" and "cd a b" processing), as no
one CDPATH entry is more appropriate than any other.
Inspired by PR standards/59565 but not directly related.
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 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