Fix old ksh bug: wrong variable being looked up when value is provided.
authorzhuk <zhuk@openbsd.org>
Fri, 5 Mar 2021 15:22:03 +0000 (15:22 +0000)
committerzhuk <zhuk@openbsd.org>
Fri, 5 Mar 2021 15:22:03 +0000 (15:22 +0000)
commit0f7e252d5c47dee06d76308af9326d47daf9f02c
treee16cf8e8158e238231e6b978d1cd6c7b3e2fdb24
parent42b4ad6c526bdc71aa6279318774e1c06bc7cb05
Fix old ksh bug: wrong variable being looked up when value is provided.

This results, e.g., in allowing the first item of a read-only array to
be overwritten, as found by Jordan Geoghegan.

okay tb@
bin/ksh/var.c