summary refs log tree commit diff
path: root/Src
Commit message (Collapse)AuthorAgeFilesLines
* Revert "41499 (with one further tweak): POSIX_STRINGS behaviour."Peter Stephenson2017-08-081-18/+2
| | | | | | | This reverts commit 2eacbef91913fe967335812900d43cf2edfa54d9. Conflicts: ChangeLog
* 41499 (with one further tweak): POSIX_STRINGS behaviour.Peter Stephenson2017-08-071-2/+18
| | | | | Ignore a terminating delimiter when splitting as separators despite being called separators are terminators.
* 41484: Make ${(q+)...} quote backsleshes.Martijn Dekker2017-08-031-1/+5
|
* 41464, 41466: With POSIX_BUILTINS, exec only executes sexternal commands.Peter Stephenson2017-07-271-2/+12
| | | | Document the default behaviour and add a test.
* 41420: "{.." wasn't check for brace expansion properlyPeter Stephenson2017-07-131-0/+2
|
* 41402: Delay has_tokens() in ecstrcode as may not be neededSebastian Gniazdowski2017-07-091-1/+5
|
* 41402: Add hasher to ecstrcode to reduce string comparisonsSebastian Gniazdowski2017-07-092-1/+6
|
* Delay processing "disown" for superjob.Peter Stephenson2017-07-042-0/+9
| | | | | | | This is a job forked from the current shell when a job partly running from the current shell was suspended. When all associated processes started from the main shell are finished the job is continued and at this point the disown can complete.
* Avoid invalid access with isearch in completion listMaxime de Roucy2017-07-041-5/+7
|
* 41375: GDBM interface bug fixesSebastian Gniazdowski2017-07-031-63/+93
|
* 41386: when backgrounding a STAT_CURSH job, remove the flag.Peter Stephenson2017-07-021-1/+3
| | | | | This typical applies to a STAT_SUPERJOB. It prevents it from getting copied interrupts as a foreground process.
* 22760: fix partial string length reports with NO_MULTIBYTEPeter Stephenson2017-07-021-1/+1
|
* 41368: Add missing unqueue_signals() to compctl.Peter Stephenson2017-06-271-0/+2
|
* 41308 (tweaked): behaviour of PCRE with NUL bytesPhil Pennock2017-06-221-11/+26
|
* 41319: dupstring a possibly readonly string before modifyingMikael Magnusson2017-06-191-1/+1
|
* 41322: reduce number of changes in signal queuing/blocking state during ↵Barton E. Schaefer2017-06-191-3/+5
| | | | shingetline() to improve read speed
* 41317: use heap allocation in getoutputfile() to plug memory leakBarton E. Schaefer2017-06-191-2/+2
| | | | Heap is usable ever since addfilelist() of workers/31528 (commit 3c573222).
* 41242: zstrbcmp(...) removed in favor of zstrcmp(..., ↵Barton E. Schaefer2017-06-172-48/+3
| | | | | | SORTIT_IGNORING_BACKSLASHES) This should make sorting consistent in completion listings vs. elsewhere.
* 41275: Leave stdin open when executing widgetsStephane Chazelas2017-06-131-0/+7
|
* 41284: Fix NULL dereference in cd.Peter Stephenson2017-06-131-1/+10
| | | | | This happened in sh compatiblity mode if HOME was not set and cd was used with no argument.
* 41244: Add zmodload -s option.Peter Stephenson2017-06-124-9/+9
| | | | | | | | Doesn't complain if module is unavailable, but prints more obscure errors. Use existing low-level silent flag by passing through intermediate module loading hierarchy.
* 41239: Save and restore default history event on context stack.Peter Stephenson2017-06-072-0/+3
| | | | | This ensures that the default event set by an expansion in ZLE doesn't propagate to the command line expansion.
* 41225: sethparam() should not attempt to change special parameters into hashesBarton E. Schaefer2017-06-051-6/+11
|
* 41191: Check for immortal thingies when checking for specific thingiesPeter Stephenson2017-06-013-5/+13
|
* 41164: Don't free a history entry if it's curline.Peter Stephenson2017-05-303-29/+18
| | | | | | This replaces 41113 / 94014ff65b with a simple local change for the immediate problem. It's not entirely clear if this reflects wider changes in the structure of the history code.
* 41151: propagate flags when creating new parameterSebastian Gniazdowski2017-05-281-1/+1
|
* 41153: finish module setup only after all error conditions have been checkedSebastian Gniazdowski2017-05-281-4/+4
|
* 41146: careul in GDBM freeing strings with embedded nullsSebastian Gniazdowski2017-05-241-10/+29
|
* 40898: fix GDBM error handlingSebastian Gniazdowski2017-05-241-1/+2
|
* 41142: Ensure close-on-exec is passed to moved file descriptorStephane Chazelas2017-05-231-10/+20
|
* 41113 (tweaked): Save current line linkage to history ring.Peter Stephenson2017-05-183-15/+29
| | | | | | | | | | When saving history state save whether the current history line is linked into the ring and remove it, and restore as appropriate later. This avoids surprises where the history ring is freed and incorrectly frees the current state in curline, which has a different allocation strategy. Original patch tweaked to make restoring more logical.
* 41090: Replace iswprint() if unicode9 is enabled.Jun-ichi Takimoto2017-05-127-336/+24
| | | | If wcwidth() or iswprint() is broken, force enable unicode9.
* 41096: Don't assume null termination copying string.Peter Stephenson2017-05-111-1/+2
| | | | | | | At this point the string may contain embedded nulls or not have a null termination at all. Also, as we always have the length memcpy() is more efficient.
* 40181: Fix buffer overrun in xsymlinks.Peter Stephenson2017-05-091-3/+11
| | | | | There was no check for copying to the internal xbuf2 for a preliminary test.
* 41078: Empty psvar could cause bad dereference in prompt expansionPeter Stephenson2017-05-091-1/+1
|
* 40173: Off-by-one error checking for {varid}.Peter Stephenson2017-05-081-1/+1
| | | | | This caused a single unprintable character in braces before a redirection to be treated as an indentifier.
* users/22688: Allow mixing redirs and arguments after anon functions.Peter Stephenson2017-05-081-4/+15
| | | | | These are parsed differently from the case of normal functions which can't take normal arguments at that point.
* Fix combination of HERE document and |&.Peter Stephenson2017-05-081-1/+1
| | | | | | | | A missing flag setting up the HERE document mean that the size of the wordcode needed to append the 2>&1 was counted incorrectly, so the resulting wordcode was garbled. Add test.
* 41043: Close pipes in shell when disowning background job.Peter Stephenson2017-05-031-0/+1
| | | | This was missing in the case of &,, causing a file descriptor leak.
* 41020: Fix "command -p"; "-p" was incorrectly left in command argumentsPeter Stephenson2017-04-281-1/+8
| | | | Also add tests for known precommand modifier issues.
* 41012: Fix premature exit from nested function in EXIT trap.Peter Stephenson2017-04-273-8/+31
| | | | | | Also add check so we don't delay an exit if we were already in an EXIT trap for the main shell, as we should in that case leave immediately.
* 41008: Handle expansions for precommand modifiersPeter Stephenson2017-04-262-35/+135
|
* 40995: Don't disable alias expansion when finding command substitution limitsPeter Stephenson2017-04-231-3/+0
| | | | | This is needed in some unusual cases in order to identify the exit condition without encountering a parse error.
* 40994: unmeta_one() need not count MetaJun-ichi Takimoto2017-04-231-8/+1
|
* 40990: Fix crash with bogus path in sh emaulation.Peter Stephenson2017-04-211-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.
* 40977: "emulate" disallows "--help" and "--version"Barton E. Schaefer2017-04-151-2/+2
|
* 40935: User names need metafying.Orlov Sergey2017-04-101-3/+3
| | | | | On some systems they can contain 8-bit characters and on all systems this is logically correct anyway.
* 40940: untokenize names of condition features before attempting to look up ↵Bart Schaefer2017-04-071-2/+2
| | | | | | the definition from a module. Necessary because of 40760 (tokenization of '-' as Dash).
* 40933: Ensure we get job text in sourced files.Peter Stephenson2017-04-041-2/+2
| | | | | | | This was turned off explicitly as it was assumed not to be needed, but it is when code in a sourced file is suspended. We'll need to see if this makes start up inefficient.
* 40932: Parameter subscripts need to count parentheses.Peter Stephenson2017-04-031-3/+8
| | | | Otherwise they can terminate in the middle of an expression.