summaryrefslogtreecommitdiff
path: root/Test/K01nameref.ztst
AgeCommit message (Collapse)AuthorFilesLines
2025-03-3153431: fix assignment via named reference to parameters in outer scopesBart Schaefer1-0/+47
2025-02-1253348: Revise handling of incompatible typeset options when used with -nBart Schaefer1-1/+1
2024-03-0552692: local typeset of the name of a named reference hides the referenceBart Schaefer1-3/+48
2024-03-0452659: Fix crash on unset-through-nameref, add regression testBart Schaefer1-0/+25
2024-03-0452650 plus minor fixes: add -u for named references pointing to "upper" scopeBart Schaefer1-3/+50
2024-02-2052559: revise "typeset -p" with respect to local readonly special parametersBart Schaefer1-2/+2
Update doc and tests to describe handling of global readonly specials and to account for side-effects on zsh/param/private.
2024-02-1852556: regression test for unset referent (left out of last commit)Bart Schaefer1-0/+11
2023-07-2651945: assorted documentation improvements, bug fixes, and new testBart Schaefer1-1/+69
1) Document the behavior of "typeset -n existing_var" (via Jun T. comment) 2) Prohibit "typeset -nm pattern" because, well, it's insane. Add test. 3) Improve doc for ${(!)ref} including ${{t!)ref} (Jun T.) 4) Fix doc for how-to unset of a named ref (Jun T.) 5) Allow "typeset +r -n ref" and "typeset +r +n ref" (Jun T.) 6) Fix "typeset -r -n ref=param" to create readonly references 7) Avoid accidental removal of PM_UNSET flag (Jun T.) and update test 8) Fix "typeset -gn ref=value" and add a test for it 9) Add tests for read-only reference behavior 10) Fix infinite recursion when resolving scope of an unset local named reference, add test.
2023-02-1451437: Fix incorrectly-passed test case, masked by unrelated bug.Bart Schaefer1-2/+21
A bug with zmodload when unloading/reloading a static module caused the state of the shell options to change during K01 test. Worked around it. Also changed warnnestedvar messages to look more like other such.
2023-02-1351430: Misc. problems with typeset and $parametersBart Schaefer1-0/+14
* Fix and test for regression of assignment when using typeset command * Fix output of typeset +m and $parameters[ref] * Prevent segfault in typeset
2023-02-1251417: Check subscripts in named reference values more rigorously.Bart Schaefer1-2/+2
2023-02-1251403: Tests and documentation for 51402, clean up some other tests.Bart Schaefer1-9/+161
2023-02-1251374: Expose named references in $parameters, fix substitution error.Bart Schaefer1-16/+89
2023-02-1251361: Tests for 51360.Bart Schaefer1-0/+439