Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 49853 + 49882/49883: make "${arr[*]:off}" compatible with ksh/bash | Jun-ichi Takimoto | 2022-03-29 | 1 | -3/+18 |
| | |||||
* | 49166: fix coredump in ${name:offset:length} with ill-formatted length | Jun-ichi Takimoto | 2021-07-19 | 1 | -5/+7 |
| | |||||
* | 49102: Ignore dynamic directory name failure if NO_EXEC | Peter Stephenson | 2021-06-28 | 1 | -1/+1 |
| | |||||
* | 48560: add TYPESET_TO_UNSET option to remove initialization of parameters | Bart Schaefer | 2021-04-18 | 1 | -1/+2 |
| | | | | | | | | | | 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. | ||||
* | 48379: Make the parameter expansion subscript flags parse error message, ↵ | Daniel Shahaf | 2021-04-08 | 1 | -3/+25 |
| | | | | "error in flags", identify the location of the parse error. | ||||
* | Unposted - fix comment | Bart Schaefer | 2020-09-13 | 1 | -1/+1 |
| | |||||
* | 47364: Enable extendedglob in pattern with ${(*)name/pattern/replacement} | Bart Schaefer | 2020-09-13 | 1 | -4/+15 |
| | | | | Mikael Magnusson: 47382: Completion for 47364 | ||||
* | users/24971: ${(-)var} sorts on signed integers | Peter Stephenson | 2020-07-03 | 1 | -0/+4 |
| | |||||
* | 46100: Fix =subst before =(subst) | Peter Stephenson | 2020-06-26 | 1 | -1/+1 |
| | | | | | | This occurs with SH file expansion ordering. Add test. | ||||
* | Support ${name:offset:length} with an empty offset | Mikael Magnusson | 2020-05-12 | 1 | -5/+15 |
| | |||||
* | 45583/0003: chrealpath: Let caller decide how the return value should be ↵ | Daniel Shahaf | 2020-03-25 | 1 | -2/+2 |
| | | | | allocated. | ||||
* | 45583/0002: chrealpath: Make symlink resolution optional. | Daniel Shahaf | 2020-03-25 | 1 | -2/+2 |
| | |||||
* | 45058: internal: Add symbolic names to possible values of zexit()'s ↵ | Daniel Shahaf | 2019-12-17 | 1 | -1/+1 |
| | | | | "from_where" parameter. No functional change. | ||||
* | 45004: Fix typos in comments | Martijn Dekker | 2019-12-11 | 1 | -6/+6 |
| | |||||
* | 44435: Handling digita arguments for :h and :t. | Peter Stephenson | 2019-06-20 | 1 | -10/+27 |
| | | | | | | | Pick number of leading or trailing path components to substitute. Active in history, brace parameters, glob qualifiers. Add tests for all three environments. | ||||
* | 43921: ${\var} should be an error | Bart Schaefer | 2018-12-21 | 1 | -1/+1 |
| | |||||
* | 43837 plus test from Daniel: Empty string in nested subst. | Peter Stephenson | 2018-11-21 | 1 | -0/+2 |
| | | | | Skip Nularg or there is a bogus character at the start. | ||||
* | 43616: Various parameter setting and display fixes. | Peter Stephenson | 2018-10-08 | 1 | -2/+2 |
| | | | | | | Mostly to do with typeset -p and tied variables and their interaction. Some general tied variable fixes. | ||||
* | 43219 (except term{cap,info}.c): fix several memory leaks | Jun-ichi Takimoto | 2018-07-31 | 1 | -1/+1 |
| | |||||
* | 42313: avoid null-pointer deref when using ${(PA)...} on an empty array result | Joey Pabalinas | 2018-01-23 | 1 | -1/+1 |
| | |||||
* | 41877: Separate out SH_FILE_EXPANSION loop from parameter substitution. | Peter Stephenson | 2017-10-13 | 1 | -16/+23 |
| | | | | | Parameter substitution can add nodes that need to be rescanned by it, but not by file expansion, so the two don't play well together. | ||||
* | 41828, 41830: skip SHFILEEXPANSION for new nodes added by stringsubst() in ↵ | Barton E. Schaefer | 2017-10-08 | 1 | -2/+17 |
| | | | | prefork() | ||||
* | Add typeset -p1, like typeset -p with newlines | Peter Stephenson | 2017-10-01 | 1 | -1/+3 |
| | |||||
* | 41764 (test tweaked): allow [key]+=value when modifying arrays | Peter Stephenson | 2017-09-27 | 1 | -4/+13 |
| | |||||
* | 41747: Don't create hash entry if just checking existence. | Peter Stephenson | 2017-09-25 | 1 | -4/+8 |
| | | | | Pass a flag in indicating this case. | ||||
* | Updates for ksh array element syntax. | Peter Stephenson | 2017-09-24 | 1 | -7/+64 |
| | | | | | | | | 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. | ||||
* | 41661: Need to remove tokens before using bufferwords() for (z) | Peter Stephenson | 2017-09-10 | 1 | -2/+6 |
| | |||||
* | 40929 (replaces 40598): paramsubst() should always return scalar when ↵ | Barton E. Schaefer | 2017-04-02 | 1 | -13/+8 |
| | | | | | | | | | PREFORK_SINGLE was passed in from prefork() Previous commit (74fe4d09) consumed too much of the input linked list, leading to later expansions being skipped. This commit converts from array to string sooner, but may thereby alter rc_expand_param and array element uniqueness behavior. | ||||
* | 40832: fix $x:P when PWD=/ | Barton E. Schaefer | 2017-03-11 | 1 | -2/+10 |
| | |||||
* | 40760: Always tokenize unquoted - to Dash. | Peter Stephenson | 2017-03-07 | 1 | -17/+24 |
| | | | | | | This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care. | ||||
* | 40640: the (A) parameter flag forces array result even if assignment syntax ↵ | Barton E. Schaefer | 2017-02-25 | 1 | -0/+11 |
| | | | | is not used | ||||
* | 40598: paramsubst() should always return scalar when PREFORK_SINGLE was passed | Barton E. Schaefer | 2017-02-20 | 1 | -1/+14 |
| | |||||
* | 40593: SHWORDSPLIT + unset IFS should cause default splitting of $@ | Barton E. Schaefer | 2017-02-20 | 1 | -1/+2 |
| | |||||
* | 40375: autoload with explicit path mustn't trash already loaded function. | Peter Stephenson | 2017-01-18 | 1 | -4/+4 |
| | | | | | Also remove unnecessary dupstring() on already duplicated string when expanding =cmd. | ||||
* | users/22319: ${ary1:^ary2} should not change isarr state of expansion of ary1 | Barton E. Schaefer | 2017-01-03 | 1 | -2/+4 |
| | | | | Unless ary1 is made from a scalar, semantics of (@) in double quotes is lost. | ||||
* | 40071: change Dash back to "-" before evaluating named directory expansions | Barton E. Schaefer | 2016-12-03 | 1 | -0/+2 |
| | |||||
* | 40034: clear badcshglob when ignoring errors | Barton E. Schaefer | 2016-11-29 | 1 | -1/+3 |
| | |||||
* | 40035: Cosmetic fixes for comments and documentation. | Eitan Adler | 2016-11-29 | 1 | -1/+1 |
| | | | | Mostly fixes to doubled words. | ||||
* | 39949: Special case for "-" in directory names. | Peter Stephenson | 2016-11-15 | 1 | -8/+8 |
| | | | | | It can be sh-tokenized to Dash to allow for appearing in ranges after substitution, so needs to be turned back to "-" in that case. | ||||
* | 39579: Fix string calculation for parameter quoting. | Julien Cretin | 2016-10-06 | 1 | -3/+3 |
| | | | | | Where there was no closing quote the size or position of the null could be wrongly calculated. | ||||
* | 34943: Fixes for "command" with multiple options. | Peter Stephenson | 2016-09-29 | 1 | -1/+1 |
| | | | | | | These need to combine properly, and alos "command -p" with either -v or -V needs to search for builtins and then using the default system path. | ||||
* | zsh-users/21903: Fix ${...?...} in interactive shell. | Peter Stephenson | 2016-09-14 | 1 | -0/+7 |
| | | | | | On failure should abort back to top level, but we reset the error flag around commands. Add a hard error flag that's only reset at top level. | ||||
* | 39252: internal: quotestring: Drop the 'e' parameter, which no caller uses. | Daniel Shahaf | 2016-09-11 | 1 | -6/+6 |
| | |||||
* | 39115: repair forced joining when (@) and (j) are used together | Barton E. Schaefer | 2016-08-29 | 1 | -2/+3 |
| | |||||
* | 39046 + 39061: New :P history modifier. | Daniel Shahaf | 2016-08-22 | 1 | -0/+13 |
| | |||||
* | 39035: ${(A)name=word} should expand as an array even when there is only one ↵ | Barton E. Schaefer | 2016-08-12 | 1 | -0/+1 |
| | | | | element. | ||||
* | 39028: more join/split cases fixed and tested. | Barton E. Schaefer | 2016-08-12 | 1 | -3/+4 |
| | |||||
* | 39019 (cf. PWS 39013): fix SHWORDSPLIT regression introduced by workers/29313 | Barton E. Schaefer | 2016-08-10 | 1 | -6/+15 |
| | | | | Also add test cases for more join/split combinations | ||||
* | 38973: Optimize indexing array parameters. | Daniel Shahaf | 2016-08-01 | 1 | -4/+11 |
| | | | | | | | | | | | % () { for 1 in $prefix/zsh/bin/zsh Src/zsh; do $1 -f -c 'a=( {1..1000000} ); repeat 3 time ( repeat 300 : $a[1] )'; done } ( repeat 300; do; : $a[1]; done; ) 1.68s user 0.01s system 98% cpu 1.718 total ( repeat 300; do; : $a[1]; done; ) 1.69s user 0.01s system 99% cpu 1.710 total ( repeat 300; do; : $a[1]; done; ) 1.69s user 0.01s system 99% cpu 1.714 total ( repeat 300; do; : $a[1]; done; ) 0.00s user 0.01s system 72% cpu 0.022 total ( repeat 300; do; : $a[1]; done; ) 0.00s user 0.01s system 72% cpu 0.022 total ( repeat 300; do; : $a[1]; done; ) 0.01s user 0.01s system 69% cpu 0.023 total | ||||
* | 38599: skip the "no such named directory" warning when NO_EXEC is in effect | Barton E. Schaefer | 2016-06-04 | 1 | -1/+1 |
| |