summaryrefslogtreecommitdiff
path: root/Src/params.c
AgeCommit message (Collapse)AuthorFilesLines
2023-01-1651278: make (i) subscript flag for zero-length string consistentPeter Stephenson1-1/+1
2022-12-1651212: remove STOUC() macroOliver Kiddle1-12/+13
This served as a workaround for ancient compilers where casts to unsigned char were broken.
2022-12-0251079: metafy sep in array subscript flag (s:sep:)Jun-ichi Takimoto1-3/+7
this enable sep to contain \0 etc.
2022-04-2050081: reset global mbstate_t variables when LC_CTYPE changesJun-ichi Takimoto1-1/+19
2021-11-2849602: only set LOGCHECK from the watch moduleOliver Kiddle1-2/+1
2021-11-0249534, 49539: separate watch/log functionality out into a moduleOliver Kiddle1-10/+6
2021-10-0449456: clean up detection of private params in nested scopes, update docBart Schaefer1-0/+5
2021-09-2249422: improve support of --disable-dynamic-nssJun-ichi Takimoto1-5/+8
see also 49392 (Vincent) and 49412 (Axel)
2021-05-1648857: declare "volatile" all globals that may be modified by signal handlersBart Schaefer1-2/+4
2021-04-1847704: POSIX export and readonly ignore "-p" when parameter names also appearBart Schaefer1-0/+4
2021-04-1848560: add TYPESET_TO_UNSET option to remove initialization of parametersBart Schaefer1-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.
2020-05-0545772: Restore locale on parameter scope end.Peter Stephenson1-0/+34
Check if relevant parameters changes and if so restore system settings.
2020-01-2345340: internal: Document the difference between paramtab and realparamtab.Daniel Shahaf1-1/+7
2019-12-1845066: internal: Document forklevel, locallevel, and exit_pending.Daniel Shahaf1-1/+5
2019-12-1145004: Fix typos in commentsMartijn Dekker1-1/+1
2019-08-1444664: Fix problem with temporary assignment.Peter Stephenson1-1/+3
"foo=bar builtin" inside a function lost any variable from enclosing scope.
2019-07-1544509: Prevent crash with modified path / PATH combination.Peter Stephenson1-4/+12
Crash came from "fn() { typeset -U path=($path); unset PATH; }". Note PATH unset is global as only path was made local.
2019-05-2044307: allow for atoi() returning a negative numberOliver Kiddle1-3/+3
2019-03-2544164: Avoid stringop-truncation warningWesley Schwengle1-1/+1
2018-10-0843616: Various parameter setting and display fixes.Peter Stephenson1-63/+109
Mostly to do with typeset -p and tied variables and their interaction. Some general tied variable fixes.
2018-09-2543546: "typeset -p" should show -U flagStephane Chazelas1-0/+7
2018-08-0943264: fix ${+assoc[nonexistent]} with KSH_ARRAYSPeter Stephenson1-1/+1
2018-05-1442297: (e) subscript flag needs extra work with scalarsdana1-3/+17
2018-05-13Nelson H. F. Beebe: 19597 (rebased 42369): return Inf, NaN etc from floating ↵Oliver Kiddle1-4/+12
point operations instead of errors to allow non-stop IEEE 754 arithmetic
2018-04-0742597: plug memory leak found by coverityOliver Kiddle1-1/+3
2018-01-04Avoid crash copying empty hash table.Stephane Chazelas1-4/+7
Visible with typeset -p.
2017-10-0241787 (plus minor tweaks): use $FUNCSTACK for function nesting depth.Peter Stephenson1-0/+14
Initialised from existing configuration value.
2017-10-01Add typeset -p1, like typeset -p with newlinesPeter Stephenson1-15/+38
2017-09-2741764 (test tweaked): allow [key]+=value when modifying arraysPeter Stephenson1-7/+32
2017-09-2541747: Don't create hash entry if just checking existence.Peter Stephenson1-3/+6
Pass a flag in indicating this case.
2017-09-24Updates for ksh array element syntax.Peter Stephenson1-65/+127
Move detection of key/value pairs down into prefork(). Detect normal array assignment and [key]=val array assignemnt separately. Mark key / value pairs with Marker and pass up flag. Deal with marked triads specially later on.
2017-09-14More [key]=value tweaksPeter Stephenson1-3/+5
Some rephrasings. Update typeset -p for associative arrays to use new syntax.
2017-09-13First go at var=([key]=value) syntax.Peter Stephenson1-0/+66
Works for both normal and typeset case, also var+=... Still to do: allow to be mixed with straight array assignment, improve typeset -p, implement [key]+=value.
2017-06-0541225: sethparam() should not attempt to change special parameters into hashesBarton E. Schaefer1-6/+11
2017-04-2140990: Fix crash with bogus path in sh emaulation.Peter Stephenson1-14/+37
When startying in sh emulation don't link PATH-style parameters to array equivalents. To allow this to function, don't check for the linkage when exporting the colon-separated parameter.
2017-04-0340932: Parameter subscripts need to count parentheses.Peter Stephenson1-3/+8
Otherwise they can terminate in the middle of an expression.
2017-03-0840799: fix $- expansion partly broken by 40760Barton E. Schaefer1-1/+3
2017-03-0840745 + 40753: Fix 'unset ZLE_RPROMPT_INDENT' not restoring the default ↵Daniel Shahaf1-1/+19
behaviour. To reproduce: RPS1=foo ZLE_RPROMPT_INDENT=42 unset ZLE_RPROMPT_INDENT
2017-03-0440781: optimize array assignment, similar to 39995 for string assignmentSebastian Gniazdowski1-15/+48
2017-02-0240486: Don't warn on creation of MATCH etc. in regex.Peter Stephenson1-5/+32
This because they are created implicitly rather than by explicit user request, so the warning may not be useful.
2017-02-0140460: WARN_NESTED_VAR: Don't warn when assigning to a slice of an existing ↵Daniel Shahaf1-6/+13
array
2017-01-2640423: WARN_NESTED_VARS, conversion the other wayPeter Stephenson1-8/+8
2017-01-2640422: More WARN_NESTED_VAR cases.Peter Stephenson1-8/+9
Converting type when using a calling scope was broken in the original patch.
2017-01-2540413: WARN_NESTED_VAR subscripted variable fix.Peter Stephenson1-1/+5
No warning needed on paramter that's created temporarily to help assignment.
2017-01-2340391: Add WARN_NESTED_VAR option and functions -W.Peter Stephenson1-23/+43
These are companions to WARN_CREATED_GLOBAL, warning when a variable from an enclosing scope is altered.
2017-01-0540270 (after 39995): Add cross-reference for robustness.Daniel Shahaf1-0/+2
2016-12-2840231: Optimise setarrvalue().Sebastian Gniazdowski1-16/+34
2016-12-0340068: Abort execution when setuid/setgid fail.Daniel Shahaf1-4/+4
The incumbent code would print an error message and continue execution with the previous uid/gid values, not even setting lastval: % UID=42 id -u; echo $? zsh: failed to change user ID: operation not permitted 1000 0 %
2016-12-0340067: internal: Document 'cmatcher', parse_cmatcher(), 'comptoend', ↵Daniel Shahaf1-1/+17
unsetparam_pm(), and getindex().
2016-11-2940032: consistency in handling of subscript slices outside the bounds of an ↵Barton E. Schaefer1-2/+9
array parameter unposted: README: example describing 40032