summary refs log tree commit diff
path: root/Src
Commit message (Collapse)AuthorAgeFilesLines
* 39383: compadd: Restrict previous patch to the case where $PREFIX includes ↵Daniel Shahaf2016-09-201-2/+4
| | | | characters both from the -P prefix and from the (unprefixed) candidate completion word.
* 39372: compadd: Match -P prefix all-or-nothing rather than greedily.Daniel Shahaf2016-09-201-4/+7
|
* 39381: handle save/restore of variable values when "typeset"-related ↵Barton E. Schaefer2016-09-191-2/+2
| | | | reserved words are prefixed by an assignment
* 39362: another race with pipeline handling.Peter Stephenson2016-09-161-25/+9
| | | | | | When forking the shell to control the right hand side, the forked subshell now always starts its own process group, to avoid getting a spurious additional SIGSTOP.
* 39359: Fix remaining race with orphaned subjob.Peter Stephenson2016-09-163-5/+58
| | | | | | When shell is forked to run right hand side of pipieline it should use its own PID as process group if the left hand side of the pipeline has already exited.
* 39331: Reparent subjob on fork with exited superjob.Peter Stephenson2016-09-163-4/+31
| | | | | | | | | | | Fixes case of v() { { vim - } always { true } } ls | v ^Z fg Tentative fix: still a race at exit where zsh forked by ^Z is stopped when restarted.
* 39310/0010: internals: match_str: Simplify expression.Daniel Shahaf2016-09-161-5/+5
| | | | | | | In the first hunk we actually know that ind==0 since sfx==0, but keep it identical to the last hunk. Also add a comment (unrelated).
* 39310/0009: internals: match_str: Downscope local variable 't'.Daniel Shahaf2016-09-161-2/+11
| | | | | | | Remove needless initialization (it is written to again before it is ever read). Note there was another 't' variable at the end of the function that shadowed the int 't'.
* 39310/0008: internals: match_str: Document several local variables.Daniel Shahaf2016-09-161-2/+16
|
* 39310/0007: internals: match_str: Rename and constify local variables 'oll', ↵Daniel Shahaf2016-09-161-2/+3
| | | | 'olw'.
* 39310/0006: internals: match_str: Downscope local variable 'bpc'.Daniel Shahaf2016-09-161-3/+7
|
* 39310/0005: internals: match_str: Constify some local variables.Daniel Shahaf2016-09-161-6/+6
|
* 39310/0004: internals: match_str: Document 'savl'.Daniel Shahaf2016-09-161-1/+16
|
* 39310/0003: internals: match_str: Document 'savw'. Avoid magic number.Daniel Shahaf2016-09-161-3/+6
| | | | All callees checked to ensure that they only check that parameter for nonzeroness.
* 39310/0002: internals: match_str: Simplify by removing 'zoff'.Daniel Shahaf2016-09-161-10/+10
| | | | | | 'zoff' was only used within 'if (sfx)' blocks, in which case it was initialized to 'alen', so simply s/zoff/alen/g. 'alen' is not const but it first changes on line 794, after the last use of 'zoff'.
* 39310/0001: internals: match_str: Document some local variables. See 39123.Daniel Shahaf2016-09-161-2/+56
|
* 39332: support ksh's [[ -v varname ]] condition for checking if variables ↵Oliver Kiddle2016-09-163-2/+34
| | | | are set
* unposted: remove duplicated assignmentOliver Kiddle2016-09-151-1/+0
|
* zsh-users/21903: Fix ${...?...} in interactive shell.Peter Stephenson2016-09-142-1/+15
| | | | | 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.
* 39292: Distinguish "=" and "==" tests in output.Peter Stephenson2016-09-134-23/+39
| | | | | This is both in xtrace output and shell code rebuilt from internal structures.
* 39305: Fix error handling after parse for here document.Peter Stephenson2016-09-131-1/+1
| | | | | Keep the error status the same as before, but also retain the interrupt status if that was non-zero.
* 39268: "zsystem flock -t 0 ..." tries only once to flock and immediately ↵Barton E. Schaefer2016-09-111-3/+3
| | | | returns success or failure
* 39252: internal: quotestring: Drop the 'e' parameter, which no caller uses.Daniel Shahaf2016-09-119-59/+40
|
* 39185: Only set word begin for completion word if not alias.Peter Stephenson2016-09-071-1/+1
| | | | | This is consistent with other ZLE code in lex.c and fixes a crash in some completions involving aliases, e.g. if uncompleted quotes.
* 39218: Fix module feature enables with math functions.Peter Stephenson2016-09-071-0/+2
| | | | If they were present parameters were miscounted.
* 39217: fix error name generation with GCC.Peter Stephenson2016-09-071-1/+6
| | | | | Adapt the same trick as in zsh.mdd to ensure we don't get preprocessor lines in the output.
* 39173: _arguments: Escape colons and backslashes in $opt_args unambiguously.Daniel Shahaf2016-09-061-3/+9
|
* 39181: Add PM_SINGLE and use for compstate.Peter Stephenson2016-09-063-2/+8
| | | | | | | | | | | | This flags that compstate (or any other special) can only have a single instance and an attempt to create a new one is an error. Given the very fiddly semantics of compstate any other usage seems pointless. No investigation yet of other variables that could use this. Note it's still possible to hide such variables; only instances that keep the special nature are affected.
* 39167: Make $ENV handling more like POSIXTeubel György2016-09-051-11/+14
|
* unposted: internals: Document zshcompwid(1) parameter implementations.Daniel Shahaf2016-09-042-3/+21
|
* 39125: More care needed decrementing SHLVL on exec.Stephane Chazelas2016-08-311-4/+7
| | | | Not needed in subshell.
* 39115: repair forced joining when (@) and (j) are used togetherBarton E. Schaefer2016-08-291-2/+3
|
* 39104: do not hash relative paths in findcmd()Barton E. Schaefer2016-08-261-1/+1
|
* 39087: fix 'conditionally uninitialized' variablesJun-ichi Takimoto2016-08-232-2/+4
|
* 39086: declare file local variables as 'static'Jun-ichi Takimoto2016-08-231-2/+2
|
* 39046 + 39061: New :P history modifier.Daniel Shahaf2016-08-223-7/+22
|
* 39064: use scalbn() instead of scalb() (mathfunc.c)Jun-ichi Takimoto2016-08-201-0/+4
|
* 39026: pattern specified with _arguments' -A option shouldn't be checked ↵Oliver Kiddle2016-08-131-2/+4
| | | | against words after the cursor
* 39035: ${(A)name=word} should expand as an array even when there is only one ↵Barton E. Schaefer2016-08-121-0/+1
| | | | element.
* 39031: Ensure variables in transpose-words are initialisedPeter Stephenson2016-08-121-1/+1
|
* 38983: Make transpose-words handle numeric arguments sensiblyHan Pingtian2016-08-121-39/+51
|
* 39028: more join/split cases fixed and tested.Barton E. Schaefer2016-08-121-3/+4
|
* 39019 (cf. PWS 39013): fix SHWORDSPLIT regression introduced by workers/29313Barton E. Schaefer2016-08-101-6/+15
| | | | Also add test cases for more join/split combinations
* 39014: Use special OpenBSD interface to get correct rand() behaviorMikael Magnusson2016-08-101-0/+4
|
* unposted: fix typo in commentBarton E. Schaefer2016-08-061-1/+1
|
* workers/38995 (in part): compfiles: Add reverse-engineered documentation ↵Daniel Shahaf2016-08-051-0/+15
| | | | breadcrumbs.
* 38991: Make 'whence -v autoloaded-function' shows the defining filename.Daniel Shahaf2016-08-051-1/+2
| | | | | | This may also fix a problem whereby the %x prompt escape evaluated to a function name rather than a filename, since %x is also backed by scriptfilename.
* 38971: Start using the new arrlen_ge() / arrlen_le() helpers.Daniel Shahaf2016-08-016-12/+12
|
* 38973: Optimize indexing array parameters.Daniel Shahaf2016-08-013-5/+52
| | | | | | | | | | | % () { 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
* 38927: zle-line-pre-redraw: Set $WIDGET like other special widgets do.Daniel Shahaf2016-07-281-1/+1
|