Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 51510: Skip namespaces in "set"/"typeset" output, add tests, fix bug | Bart Schaefer | 2023-03-06 | 1 | -0/+4 |
| | |||||
* | 51509 (+ fix typo): Add ${(!)name} for the referred-to name of a named reference | Bart Schaefer | 2023-03-06 | 1 | -2/+5 |
| | | | | Extend ${!name} in ksh emulation for same | ||||
* | 51484: Extend named reference handling for special parameters, improve doc. | Bart Schaefer | 2023-03-05 | 1 | -44/+64 |
| | |||||
* | 51483: Enable assignment and expansion of parameters with ksh-like namespace ↵ | Bart Schaefer | 2023-03-05 | 1 | -5/+6 |
| | | | | prefixes. | ||||
* | Fix access to autoloaded parameter. | Peter Stephenson | 2023-02-21 | 1 | -1/+1 |
| | | | | Namerefef resolution needs to happen on the parameter after autoload. | ||||
* | 51437: Fix incorrectly-passed test case, masked by unrelated bug. | Bart Schaefer | 2023-02-14 | 1 | -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 $parameters | Bart Schaefer | 2023-02-13 | 1 | -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 Schaefer | 2023-02-12 | 1 | -1/+10 |
| | |||||
* | 51402: Some ksh/bash features, additional sanity checking | Bart Schaefer | 2023-02-12 | 1 | -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 Schaefer | 2023-02-12 | 1 | -2/+8 |
| | |||||
* | 51360: Initial implementation of named references. | Bart Schaefer | 2023-02-12 | 1 | -5/+185 |
| | |||||
* | 51278: make (i) subscript flag for zero-length string consistent | Peter Stephenson | 2023-01-16 | 1 | -1/+1 |
| | |||||
* | 51212: remove STOUC() macro | Oliver Kiddle | 2022-12-16 | 1 | -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 Takimoto | 2022-12-02 | 1 | -3/+7 |
| | | | | this enable sep to contain \0 etc. | ||||
* | 50081: reset global mbstate_t variables when LC_CTYPE changes | Jun-ichi Takimoto | 2022-04-20 | 1 | -1/+19 |
| | |||||
* | 49602: only set LOGCHECK from the watch module | Oliver Kiddle | 2021-11-28 | 1 | -2/+1 |
| | |||||
* | 49534, 49539: separate watch/log functionality out into a module | Oliver Kiddle | 2021-11-02 | 1 | -10/+6 |
| | |||||
* | 49456: clean up detection of private params in nested scopes, update doc | Bart Schaefer | 2021-10-04 | 1 | -0/+5 |
| | |||||
* | 49422: improve support of --disable-dynamic-nss | Jun-ichi Takimoto | 2021-09-22 | 1 | -5/+8 |
| | | | | see also 49392 (Vincent) and 49412 (Axel) | ||||
* | 48857: declare "volatile" all globals that may be modified by signal handlers | Bart Schaefer | 2021-05-16 | 1 | -2/+4 |
| | |||||
* | 47704: POSIX export and readonly ignore "-p" when parameter names also appear | Bart Schaefer | 2021-04-18 | 1 | -0/+4 |
| | |||||
* | 48560: add TYPESET_TO_UNSET option to remove initialization of parameters | Bart Schaefer | 2021-04-18 | 1 | -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 Stephenson | 2020-05-05 | 1 | -0/+34 |
| | | | | Check if relevant parameters changes and if so restore system settings. | ||||
* | 45340: internal: Document the difference between paramtab and realparamtab. | Daniel Shahaf | 2020-01-23 | 1 | -1/+7 |
| | |||||
* | 45066: internal: Document forklevel, locallevel, and exit_pending. | Daniel Shahaf | 2019-12-18 | 1 | -1/+5 |
| | |||||
* | 45004: Fix typos in comments | Martijn Dekker | 2019-12-11 | 1 | -1/+1 |
| | |||||
* | 44664: Fix problem with temporary assignment. | Peter Stephenson | 2019-08-14 | 1 | -1/+3 |
| | | | | | "foo=bar builtin" inside a function lost any variable from enclosing scope. | ||||
* | 44509: Prevent crash with modified path / PATH combination. | Peter Stephenson | 2019-07-15 | 1 | -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 number | Oliver Kiddle | 2019-05-20 | 1 | -3/+3 |
| | |||||
* | 44164: Avoid stringop-truncation warning | Wesley Schwengle | 2019-03-25 | 1 | -1/+1 |
| | |||||
* | 43616: Various parameter setting and display fixes. | Peter Stephenson | 2018-10-08 | 1 | -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 flag | Stephane Chazelas | 2018-09-25 | 1 | -0/+7 |
| | |||||
* | 43264: fix ${+assoc[nonexistent]} with KSH_ARRAYS | Peter Stephenson | 2018-08-09 | 1 | -1/+1 |
| | |||||
* | 42297: (e) subscript flag needs extra work with scalars | dana | 2018-05-14 | 1 | -3/+17 |
| | |||||
* | Nelson H. F. Beebe: 19597 (rebased 42369): return Inf, NaN etc from floating ↵ | Oliver Kiddle | 2018-05-13 | 1 | -4/+12 |
| | | | | point operations instead of errors to allow non-stop IEEE 754 arithmetic | ||||
* | 42597: plug memory leak found by coverity | Oliver Kiddle | 2018-04-07 | 1 | -1/+3 |
| | |||||
* | Avoid crash copying empty hash table. | Stephane Chazelas | 2018-01-04 | 1 | -4/+7 |
| | | | | Visible with typeset -p. | ||||
* | 41787 (plus minor tweaks): use $FUNCSTACK for function nesting depth. | Peter Stephenson | 2017-10-02 | 1 | -0/+14 |
| | | | | Initialised from existing configuration value. | ||||
* | Add typeset -p1, like typeset -p with newlines | Peter Stephenson | 2017-10-01 | 1 | -15/+38 |
| | |||||
* | 41764 (test tweaked): allow [key]+=value when modifying arrays | Peter Stephenson | 2017-09-27 | 1 | -7/+32 |
| | |||||
* | 41747: Don't create hash entry if just checking existence. | Peter Stephenson | 2017-09-25 | 1 | -3/+6 |
| | | | | Pass a flag in indicating this case. | ||||
* | Updates for ksh array element syntax. | Peter Stephenson | 2017-09-24 | 1 | -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. | ||||
* | More [key]=value tweaks | Peter Stephenson | 2017-09-14 | 1 | -3/+5 |
| | | | | | | Some rephrasings. Update typeset -p for associative arrays to use new syntax. | ||||
* | First go at var=([key]=value) syntax. | Peter Stephenson | 2017-09-13 | 1 | -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. | ||||
* | 41225: sethparam() should not attempt to change special parameters into hashes | Barton E. Schaefer | 2017-06-05 | 1 | -6/+11 |
| | |||||
* | 40990: Fix crash with bogus path in sh emaulation. | Peter Stephenson | 2017-04-21 | 1 | -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. | ||||
* | 40932: Parameter subscripts need to count parentheses. | Peter Stephenson | 2017-04-03 | 1 | -3/+8 |
| | | | | Otherwise they can terminate in the middle of an expression. | ||||
* | 40799: fix $- expansion partly broken by 40760 | Barton E. Schaefer | 2017-03-08 | 1 | -1/+3 |
| | |||||
* | 40745 + 40753: Fix 'unset ZLE_RPROMPT_INDENT' not restoring the default ↵ | Daniel Shahaf | 2017-03-08 | 1 | -1/+19 |
| | | | | | | | | | | behaviour. To reproduce: RPS1=foo ZLE_RPROMPT_INDENT=42 unset ZLE_RPROMPT_INDENT | ||||
* | 40781: optimize array assignment, similar to 39995 for string assignment | Sebastian Gniazdowski | 2017-03-04 | 1 | -15/+48 |
| |