1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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)
This commit is contained in:
Martijn Dekker 2020-06-06 13:09:33 +02:00
parent 7a421ba57f
commit d8a2b4fa6d

View file

@ -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 ,