From 0d2d6bb47ba4f576533826e91c206e7a839c72ba Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Mon, 6 Dec 2021 06:56:05 +0100 Subject: [PATCH] Documentation tweaks (re: cd8c48cc) 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 https://github.com/ksh93/ksh/pull/358#issuecomment-986294934 --- src/cmd/ksh93/data/builtins.c | 5 ++--- src/cmd/ksh93/sh.1 | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/cmd/ksh93/data/builtins.c b/src/cmd/ksh93/data/builtins.c index 855deaac0..691a944c4 100644 --- a/src/cmd/ksh93/data/builtins.c +++ b/src/cmd/ksh93/data/builtins.c @@ -441,7 +441,7 @@ const char sh_optbuiltin[] = ; const char sh_optcd[] = -"[-1c?\n@(#)$Id: cd (ksh 93u+m) 2021-12-02 $\n]" +"[-1c?\n@(#)$Id: cd (ksh 93u+m) 2021-12-05 $\n]" "[--catalog?" SH_DICT "]" "[+NAME?cd - change working directory ]" "[+DESCRIPTION?\bcd\b changes the current working directory of the " @@ -484,8 +484,7 @@ const char sh_optcd[] = "components are expanded in the resulting directory name.]" "[e?If the \b-P\b option is in effect and the correct \bPWD\b cannot be " "determined, exit with status 1. All other errors encountered while " - "both \b-e\b and \b-P\b are active result in exit status >1 (i.e., " - "exit status 2 unless an out of memory error occurred).]" + "both \b-e\b and \b-P\b are active result in exit status >1.]" "\n" "\n[directory]\n" "old new\n" diff --git a/src/cmd/ksh93/sh.1 b/src/cmd/ksh93/sh.1 index a9683e08a..ba945b1de 100644 --- a/src/cmd/ksh93/sh.1 +++ b/src/cmd/ksh93/sh.1 @@ -5857,8 +5857,6 @@ could not be determined after successfully changing the directory, will return with exit status one and produce no output. If any other error occurs while both flags are active, the exit status is greater than one. -This means the exit status is effectively -two unless an out of memory error occurs. .sp .5 The .B cd\^