1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-24 15:04:13 +00:00
cde/src/cmd/ksh93/sh
Martijn Dekker c9ccee86bb Fix 'command -p' by fixing initialisation of default PATH variable
'command -p' was broken for non-interactive shells as the variable
used to store the default system PATH, std_path, was not
initialised correctly. For instance:
	$ ksh -c 'command -p ls'
	ksh: ls: not found
This fix by Siteshwar Vashisht is backported from ksh2020.
Ref.:
https://github.com/att/ast/issues/426
https://github.com/att/ast/pull/448

src/cmd/ksh93/sh/path.c:
- Correctly initialise std_path (the default PATH) when ksh is
  started as a non-interactive shell.

src/cmd/ksh93/sh.1:
- Fix vague explanation of 'command -p'.

src/cmd/ksh93/tests/path.sh:
- Add regression test.

(cherry picked from commit a76439d60b70c18cf44d84c1962fcd8df84c947c)
2020-06-12 01:45:14 +02:00
..
args.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
arith.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
array.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
bash.c Fix 47 typos in user-facing help and error messages 2020-06-12 01:45:12 +02:00
defs.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
deparse.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
env.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
expand.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
fault.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
fcin.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
init.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
io.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
jobs.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
lex.c Fix BUG_REDIRIO 2020-06-12 01:45:13 +02:00
macro.c fix 5 more typos: incorrect "than" 2020-06-12 01:45:13 +02:00
main.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
name.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
nvdisc.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
nvtree.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
nvtype.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
parse.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
path.c Fix 'command -p' by fixing initialisation of default PATH variable 2020-06-12 01:45:14 +02:00
pmain.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
shcomp.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
streval.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
string.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
subshell.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
suid_exec.c sh/suid_exec.c: fix 2 confusing typos in comments 2020-06-12 01:45:14 +02:00
tdump.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
timers.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
trestore.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
waitevent.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
xec.c Fix BUG_CASELIT: pattern matching as literal string in 'case' 2020-06-12 01:45:13 +02:00