Skip to content

Commit e18cf64

Browse files
committed
Documentation tweaks (re: abf87cb)
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 abf87cb commit e18cf64

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
@@ -5888,8 +5888,6 @@ could not be determined after successfully changing the directory,
58885888
will return with exit status one and produce no output.
58895889
If any other error occurs while both flags are active,
58905890
the exit status is greater than one.
5891-
This means the exit status is effectively
5892-
two unless an out of memory error occurs.
58935891
.sp .5
58945892
The
58955893
.B cd\^

0 commit comments

Comments
 (0)