Skip to content

Commit 0d2d6bb

Browse files
committed
Documentation tweaks (re: cd8c48c)
The information about an out of memory error does not apply to the version of the PR that was eventually committed since it does not use getcwd() which might cause such an error. See #358 (comment)
1 parent cd8c48c commit 0d2d6bb

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/cmd/ksh93/data/builtins.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ const char sh_optbuiltin[] =
441441
;
442442

443443
const char sh_optcd[] =
444-
"[-1c?\n@(#)$Id: cd (ksh 93u+m) 2021-12-02 $\n]"
444+
"[-1c?\n@(#)$Id: cd (ksh 93u+m) 2021-12-05 $\n]"
445445
"[--catalog?" SH_DICT "]"
446446
"[+NAME?cd - change working directory ]"
447447
"[+DESCRIPTION?\bcd\b changes the current working directory of the "
@@ -484,8 +484,7 @@ const char sh_optcd[] =
484484
"components are expanded in the resulting directory name.]"
485485
"[e?If the \b-P\b option is in effect and the correct \bPWD\b cannot be "
486486
"determined, exit with status 1. All other errors encountered while "
487-
"both \b-e\b and \b-P\b are active result in exit status >1 (i.e., "
488-
"exit status 2 unless an out of memory error occurred).]"
487+
"both \b-e\b and \b-P\b are active result in exit status >1.]"
489488
"\n"
490489
"\n[directory]\n"
491490
"old new\n"

src/cmd/ksh93/sh.1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5857,8 +5857,6 @@ could not be determined after successfully changing the directory,
58575857
will return with exit status one and produce no output.
58585858
If any other error occurs while both flags are active,
58595859
the exit status is greater than one.
5860-
This means the exit status is effectively
5861-
two unless an out of memory error occurs.
58625860
.sp .5
58635861
The
58645862
.B cd\^

0 commit comments

Comments
 (0)