1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00
cde/src/cmd/ksh93/sh
Johnothan King fae8862c53
Fix assignments preceding 'command <special builtin>' (#19)
Ksh was not checking for `command` when running a special builtin,
which caused preceding invocation-local variable assignments to
become global. This is the reproducer from the att/ast#72:

$ foo=BUG command eval ':'
$ echo "$foo"

This no longer prints 'BUG', as ksh now makes sure the command builtin
is not running a special builtin before making invocation-local
variable assignments global.

src/cmd/ksh93/sh/xec.c:
 - Backport the bugfix for BUG_CMDSPASGN from ksh93v- 2013-10-10-alpha.

src/cmd/ksh93/tests/builtins.sh:
 - Add a regression test based on the reproducer in att/ast#72.
2020-06-16 22:58:05 +01:00
..
args.c Fix set +r so that it cannot unset the restricted option 2020-06-12 01:45:18 +02:00
arith.c silence macro redefinition warnings (re: 7003aba4) 2020-06-16 04:51:21 +02: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 Fix 'test'/'[' exit status >1 on error in arithmetic expression 2020-06-12 01:45:15 +02: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 signal handling due to exit status > 256 2020-06-12 01:45:17 +02:00
fcin.c Fix parsing of multibyte characters 2020-06-12 01:45:17 +02:00
init.c Refactor new b_hash(); better hash table clear (re: d8428a83) 2020-06-12 01:45:18 +02:00
io.c Remove code related to long-dead 3DFS research project 2020-06-12 01:45:17 +02:00
jobs.c Implement a portable fix for SIGCHLD crashes (#18) 2020-06-16 22:44:02 +01:00
lex.c Fix BUG_REDIRIO 2020-06-12 01:45:13 +02:00
macro.c POSIX compliance fix: apply 'set -u' to $! 2020-06-12 01:45:17 +02:00
main.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
name.c Refactor new b_hash(); better hash table clear (re: d8428a83) 2020-06-12 01:45:18 +02:00
nvdisc.c Implement a better fix for unsetting special env vars 2020-06-13 12:55:48 -07: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 Make 'source' a regular built-in 2020-06-15 11:33:44 +02:00
path.c Remove code related to long-dead 3DFS research project 2020-06-12 01:45:17 +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 silence macro redefinition warnings (re: 7003aba4) 2020-06-16 04:51:21 +02:00
string.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
subshell.c Apply simple optimisation for ${ subshare; } (re: 3d38270b) 2020-06-15 20:27:32 +02:00
suid_exec.c Fix 39 spelling errors and a formatting issue 2020-06-12 01:45:18 +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 assignments preceding 'command <special builtin>' (#19) 2020-06-16 22:58:05 +01:00