summaryrefslogtreecommitdiffstats
path: root/Test/K01nameref.ztst
Commit message (Collapse)AuthorAgeFilesLines
* 54064: avoid crash on named references to argv/ARGC, improve valid_nameref()Bart Schaefer2025-11-101-1/+86
| | | | Leaves some edgecase issues unresolved (see tests).
* 54057: enable assignment through named reference to change type of the referentPhilippe Altherr2025-11-091-2/+157
|
* 53676+54009: Revise 52650+51945 for assignment to global through namerefBart Schaefer2025-10-261-5/+23
| | | | | Allows assignment to a global via nameref to succeed without creating a dereference loop. Update tests for changed behavior.
* 53798: report reference loops created when a reference goes out of scopePhilippe Altherr2025-10-261-0/+39
|
* 53790: corrections to reference loop detectionPhilippe Altherr2025-10-261-0/+19
|
* 53797: fix creation of undeclared target variable through reference chainPhilippe Altherr2025-10-261-0/+14
|
* 53796: fix local reference chains and detect self-reference across local scopesPhilippe Altherr2025-10-261-0/+10
|
* 53782: Src/params.c, Test/K01nameref.ztst: changes to nameref base level:Philippe Altherr2025-10-261-9/+44
| | | | | | - avoid changing base on assignment; - omit base level for up-scope references - do not follow reference chains for base level of new references
* 53781: fix loading of autoload variable via a referencePhilippe Altherr2025-10-261-0/+58
|
* 53602: "typeset -nu" always refers to at a call level above the declarationBart Schaefer2025-05-121-10/+22
|
* 53568: fix additional problems with reference scoping, update documentationBart Schaefer2025-05-091-2/+72
| | | | | Scope exits could miss some scope updates in named reference chains. References declared -u behave like any other reference upon scope exit.
* 53546,53557 (plus test): Fix scoping of "placeholder" named referencesBart Schaefer2025-05-061-0/+160
| | | | | | | When using placeholders declared several levels earlier than assignment: 1) Searching "up" for "typeset -n -u" could find deeper locals than intended 2) Searching for a subscript reference could skip to the top level 3) Exiting a function scope could incorrectly change the reference level
* 53431: fix assignment via named reference to parameters in outer scopesBart Schaefer2025-03-311-0/+47
|
* 53348: Revise handling of incompatible typeset options when used with -nBart Schaefer2025-02-121-1/+1
|
* 52692: local typeset of the name of a named reference hides the referenceBart Schaefer2024-03-051-3/+48
|
* 52659: Fix crash on unset-through-nameref, add regression testBart Schaefer2024-03-041-0/+25
|
* 52650 plus minor fixes: add -u for named references pointing to "upper" scopeBart Schaefer2024-03-041-3/+50
|
* 52559: revise "typeset -p" with respect to local readonly special parametersBart Schaefer2024-02-201-2/+2
| | | | | Update doc and tests to describe handling of global readonly specials and to account for side-effects on zsh/param/private.
* 52556: regression test for unset referent (left out of last commit)Bart Schaefer2024-02-181-0/+11
|
* 51945: assorted documentation improvements, bug fixes, and new testBart Schaefer2023-07-261-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.
* 51437: Fix incorrectly-passed test case, masked by unrelated bug.Bart Schaefer2023-02-141-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.
* 51430: Misc. problems with typeset and $parametersBart Schaefer2023-02-131-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
* 51417: Check subscripts in named reference values more rigorously.Bart Schaefer2023-02-121-2/+2
|
* 51403: Tests and documentation for 51402, clean up some other tests.Bart Schaefer2023-02-121-9/+161
|
* 51374: Expose named references in $parameters, fix substitution error.Bart Schaefer2023-02-121-16/+89
|
* 51361: Tests for 51360.Bart Schaefer2023-02-121-0/+439