about summary refs log tree commit diff
path: root/Src/params.c
Commit message (Collapse)AuthorAgeFilesLines
* 52752: typeset -p fixes for local exports and "export -x" / "readonly -r" ↵Bart Schaefer2024-03-141-3/+18
| | | | output.
* 52692: local typeset of the name of a named reference hides the referenceBart Schaefer2024-03-051-1/+2
|
* unposted (cf. 52617): only scalars can instantiate a declared named referenceBart Schaefer2024-03-041-2/+8
|
* 52650 plus minor fixes: add -u for named references pointing to "upper" scopeBart Schaefer2024-03-041-12/+20
|
* 52652: fix obscure bug unsetting the array part of a tied parameter pairBart Schaefer2024-03-021-2/+5
|
* 52619 (plus tests): no empty element when appending array to unset scalarBart Schaefer2024-02-281-1/+1
|
* 52594: support for POSIX real-time signals with kill and trapOliver Kiddle2024-02-281-2/+12
| | | | Also add new -L option to kill for a more verbose listing of signals
* 52583: extra check for proper scope and existence of readonly specialsBart Schaefer2024-02-231-2/+23
|
* 52559: revise "typeset -p" with respect to local readonly special parametersBart Schaefer2024-02-201-2/+22
| | | | | Update doc and tests to describe handling of global readonly specials and to account for side-effects on zsh/param/private.
* unposted: referent of named reference cannot start with digitsBart Schaefer2024-02-181-0/+2
| | | | This duplicates ksh behavior and doesn't change useful functionality.
* 52513: fixes and doc for using nofork substitutions with private parametersBart Schaefer2024-02-031-4/+13
| | | | Also fixes a crash bug with {fd}>&N redirections and private parameters
* 52244: Fix a batch of minor defects reported by Coverity.Bart Schaefer2023-10-261-3/+2
| | | | | | Coverity defects 1547831, 1547826 (remove unused function), 1521551, 1500752, 1500747, 1401549, 1372423, 1270645, 1255799, 1255792, 1255789, 1255787, 1255782, 1255750
* 52195: cached_username is already metafied when initializing LOGNAMEBart Schaefer2023-10-011-4/+3
|
* 52193: handle UTF8-encoded USERNAME and therefore home directory in zcompileBart Schaefer2023-10-011-1/+1
| | | | Includes one unposted thinko fix ztrdup -> dupstring
* 51945: assorted documentation improvements, bug fixes, and new testBart Schaefer2023-07-261-4/+10
| | | | | | | | | | | | | | 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.
* 51884: reset IFS if it contains invalid charactersJun-ichi Takimoto2023-06-261-0/+3
| | | | This happens only if MULTIBYTE option is on.
* 51887: namespaces recognized in math, incorrect usages rejected.Bart Schaefer2023-06-221-1/+26
|
* 51510: Skip namespaces in "set"/"typeset" output, add tests, fix bugBart Schaefer2023-03-061-0/+4
|
* 51509 (+ fix typo): Add ${(!)name} for the referred-to name of a named referenceBart Schaefer2023-03-061-2/+5
| | | | Extend ${!name} in ksh emulation for same
* 51484: Extend named reference handling for special parameters, improve doc.Bart Schaefer2023-03-051-44/+64
|
* 51483: Enable assignment and expansion of parameters with ksh-like namespace ↵Bart Schaefer2023-03-051-5/+6
| | | | prefixes.
* Fix access to autoloaded parameter.Peter Stephenson2023-02-211-1/+1
| | | | Namerefef resolution needs to happen on the parameter after autoload.
* 51437: Fix incorrectly-passed test case, masked by unrelated bug.Bart Schaefer2023-02-141-2/+3
| | | | | | 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-1/+1
| | | | | | * 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-1/+10
|
* 51402: Some ksh/bash features, additional sanity checkingBart Schaefer2023-02-121-12/+80
| | | | | | | | | | | | * Add "unset -n" * Allow and enforce "typeset -n -r" for read-only references * "can't change type via subscript reference" error * Better checking for self-referential declarations/assignments * Ksh-style "foo=bar; typeset -n foo" creates foo=bar reference * Support "typeset -n ref; for ref in ..." * Subscripted references use NO_EXEC for safety * References assigned in called scopes reset scope at end * Allow named references to $! $? $$ $- $0 $_
* 51374: Expose named references in $parameters, fix substitution error.Bart Schaefer2023-02-121-2/+8
|
* 51360: Initial implementation of named references.Bart Schaefer2023-02-121-5/+185
|
* 51278: make (i) subscript flag for zero-length string consistentPeter Stephenson2023-01-161-1/+1
|
* 51212: remove STOUC() macroOliver Kiddle2022-12-161-12/+13
| | | | | This served as a workaround for ancient compilers where casts to unsigned char were broken.
* 51079: metafy sep in array subscript flag (s:sep:)Jun-ichi Takimoto2022-12-021-3/+7
| | | | this enable sep to contain \0 etc.
* 50081: reset global mbstate_t variables when LC_CTYPE changesJun-ichi Takimoto2022-04-201-1/+19
|
* 49602: only set LOGCHECK from the watch moduleOliver Kiddle2021-11-281-2/+1
|
* 49534, 49539: separate watch/log functionality out into a moduleOliver Kiddle2021-11-021-10/+6
|
* 49456: clean up detection of private params in nested scopes, update docBart Schaefer2021-10-041-0/+5
|
* 49422: improve support of --disable-dynamic-nssJun-ichi Takimoto2021-09-221-5/+8
| | | | see also 49392 (Vincent) and 49412 (Axel)
* 48857: declare "volatile" all globals that may be modified by signal handlersBart Schaefer2021-05-161-2/+4
|
* 47704: POSIX export and readonly ignore "-p" when parameter names also appearBart Schaefer2021-04-181-0/+4
|
* 48560: add TYPESET_TO_UNSET option to remove initialization of parametersBart Schaefer2021-04-181-3/+19
| | | | | | | | | | Changes typeset such that ${newparam-notset} yields "notset" and "typeset -p newparam" does not show an assignment to the parameter. This is similar to the default behavior of bash and ksh, with minor differences in typeset output. Also add tests for some POSIX incompatibilities plus minor changes for test harness robustness.
* 45772: Restore locale on parameter scope end.Peter Stephenson2020-05-051-0/+34
| | | | Check if relevant parameters changes and if so restore system settings.
* 45340: internal: Document the difference between paramtab and realparamtab.Daniel Shahaf2020-01-231-1/+7
|
* 45066: internal: Document forklevel, locallevel, and exit_pending.Daniel Shahaf2019-12-181-1/+5
|
* 45004: Fix typos in commentsMartijn Dekker2019-12-111-1/+1
|
* 44664: Fix problem with temporary assignment.Peter Stephenson2019-08-141-1/+3
| | | | | "foo=bar builtin" inside a function lost any variable from enclosing scope.
* 44509: Prevent crash with modified path / PATH combination.Peter Stephenson2019-07-151-4/+12
| | | | | | Crash came from "fn() { typeset -U path=($path); unset PATH; }". Note PATH unset is global as only path was made local.
* 44307: allow for atoi() returning a negative numberOliver Kiddle2019-05-201-3/+3
|
* 44164: Avoid stringop-truncation warningWesley Schwengle2019-03-251-1/+1
|
* 43616: Various parameter setting and display fixes.Peter Stephenson2018-10-081-63/+109
| | | | | | Mostly to do with typeset -p and tied variables and their interaction. Some general tied variable fixes.
* 43546: "typeset -p" should show -U flagStephane Chazelas2018-09-251-0/+7
|
* 43264: fix ${+assoc[nonexistent]} with KSH_ARRAYSPeter Stephenson2018-08-091-1/+1
|