From d8a2b4fa6d69ca9e8ec5bfb53c97448c50d1e731 Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Sat, 6 Jun 2020 13:09:33 +0200 Subject: [PATCH] manual page: fix documentation of default path It didn't mention that the default path is obtained from the operating system where available, and that the default string documented is only a fallback (which, btw, should never occur on modern systems). See: e_defpath[] in src/cmd/ksh93/data/msg.c defpath_init() in src/cmd/ksh93/sh/path.c src/cmd/ksh93/sh.1: - Add a mention that the default path is equal to the output of ksh's 'getconf PATH' builtin command, unless that fails. (cherry picked from commit 12b8dc54626a14171d3671a26041733a32e0e07d) --- src/cmd/ksh93/sh.1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/ksh93/sh.1 b/src/cmd/ksh93/sh.1 index 9eaa5d2a1..211deda91 100644 --- a/src/cmd/ksh93/sh.1 +++ b/src/cmd/ksh93/sh.1 @@ -4228,7 +4228,9 @@ search for the command name. Alternative directory names are separated by a colon .RB ( : ). -The default path is +The default path is equal to the output of +.BI builtin\ getconf;\ getconf\ PATH +or, if the OS doesn't provide that value, .B /bin:/usr/bin: (specifying .BR /bin ,