Commit ID:      1004FAAFBED1D226CAF
CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2012/05/09 23:21:02 UTC

Modified files:
        bin/mksh       : check.t funcs.c sh.h syn.c var.c

Log message:
Fix typeset issues (LP: #993847)

This was actually more evil:
• use a recursive function to display blocks in reverse order,
  so that local variable values overwrite global ones
• add array support to typeset -p (from typeset -p -)
• display 'set -A varname' line before setting values, for -p
• if -p got arguments, only display those (from the innermost scope)

Also, the usual amount of code cleanup…

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.536 -r1.537 src/bin/mksh/check.t
cvs -R rdiff -kk -upr1.218 -r1.219 src/bin/mksh/funcs.c
cvs -R rdiff -kk -upr1.559 -r1.560 src/bin/mksh/sh.h
cvs -R rdiff -kk -upr1.74 -r1.75 src/bin/mksh/syn.c
cvs -R rdiff -kk -upr1.148 -r1.149 src/bin/mksh/var.c

Reply via email to