summaryrefslogtreecommitdiffstats
path: root/tests/008
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-01-30 23:11:47 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-01-30 23:11:47 -0800
commit7b26a8a95f544c04c20af9fdeac16624685a15b6 (patch)
tree9b86323c6f6323d914fa0e69a3624db9bd97bc7e /tests/008
parentfd30d22a593b3e5a07855db6473241a0c8ced99c (diff)
downloadtxr-7b26a8a95f544c04c20af9fdeac16624685a15b6.tar.gz
txr-7b26a8a95f544c04c20af9fdeac16624685a15b6.tar.bz2
txr-7b26a8a95f544c04c20af9fdeac16624685a15b6.zip
@(rebind): bugfix: don't clobber right side variable.
* Makefile (tst/tests/000/binding.ok): Pass -B to txr for this new test. * match.c (v_rebind): Fix gaping copy-and-paste bug here, which causes rebind to take on the behavior of local/forget; it takes all symbols that appear as its arguments from the environment and produces an environment in which they don't exist. What we want is to remove the left variables from the environment, and since that is a nested pattern, the right way to do that is to flatten it. Bug reported by Frank Schwidom. * tests/000/binding.txr: New file. * tests/000/binding.expected: New file. * txr.1: Improve documentation of @(rebind), also making improvements in @(set) documentation.
Diffstat (limited to 'tests/008')
0 files changed, 0 insertions, 0 deletions