summaryrefslogtreecommitdiff
path: root/Src
AgeCommit message (Collapse)AuthorFilesLines
2017-07-0941402: Add hasher to ecstrcode to reduce string comparisonsSebastian Gniazdowski2-1/+6
2017-07-04Delay processing "disown" for superjob.Peter Stephenson2-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.
2017-07-04Avoid invalid access with isearch in completion listMaxime de Roucy1-5/+7
2017-07-0341375: GDBM interface bug fixesSebastian Gniazdowski1-63/+93
2017-07-0241386: when backgrounding a STAT_CURSH job, remove the flag.Peter Stephenson1-1/+3
This typical applies to a STAT_SUPERJOB. It prevents it from getting copied interrupts as a foreground process.
2017-07-0222760: fix partial string length reports with NO_MULTIBYTEPeter Stephenson1-1/+1
2017-06-2741368: Add missing unqueue_signals() to compctl.Peter Stephenson1-0/+2
2017-06-2241308 (tweaked): behaviour of PCRE with NUL bytesPhil Pennock1-11/+26
2017-06-1941319: dupstring a possibly readonly string before modifyingMikael Magnusson1-1/+1
2017-06-1941322: reduce number of changes in signal queuing/blocking state during ↵Barton E. Schaefer1-3/+5
shingetline() to improve read speed
2017-06-1941317: use heap allocation in getoutputfile() to plug memory leakBarton E. Schaefer1-2/+2
Heap is usable ever since addfilelist() of workers/31528 (commit 3c573222).
2017-06-1741242: zstrbcmp(...) removed in favor of zstrcmp(..., ↵Barton E. Schaefer2-48/+3
SORTIT_IGNORING_BACKSLASHES) This should make sorting consistent in completion listings vs. elsewhere.
2017-06-1341275: Leave stdin open when executing widgetsStephane Chazelas1-0/+7
2017-06-1341284: Fix NULL dereference in cd.Peter Stephenson1-1/+10
This happened in sh compatiblity mode if HOME was not set and cd was used with no argument.
2017-06-1241244: Add zmodload -s option.Peter Stephenson4-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.
2017-06-0741239: Save and restore default history event on context stack.Peter Stephenson2-0/+3
This ensures that the default event set by an expansion in ZLE doesn't propagate to the command line expansion.
2017-06-0541225: sethparam() should not attempt to change special parameters into hashesBarton E. Schaefer1-6/+11
2017-06-0141191: Check for immortal thingies when checking for specific thingiesPeter Stephenson3-5/+13
2017-05-3041164: Don't free a history entry if it's curline.Peter Stephenson3-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.
2017-05-2841151: propagate flags when creating new parameterSebastian Gniazdowski1-1/+1
2017-05-2841153: finish module setup only after all error conditions have been checkedSebastian Gniazdowski1-4/+4
2017-05-2441146: careul in GDBM freeing strings with embedded nullsSebastian Gniazdowski1-10/+29
2017-05-2440898: fix GDBM error handlingSebastian Gniazdowski1-1/+2
2017-05-2341142: Ensure close-on-exec is passed to moved file descriptorStephane Chazelas1-10/+20
2017-05-1841113 (tweaked): Save current line linkage to history ring.Peter Stephenson3-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.
2017-05-1241090: Replace iswprint() if unicode9 is enabled.Jun-ichi Takimoto7-336/+24
If wcwidth() or iswprint() is broken, force enable unicode9.
2017-05-1141096: Don't assume null termination copying string.Peter Stephenson1-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.
2017-05-0940181: Fix buffer overrun in xsymlinks.Peter Stephenson1-3/+11
There was no check for copying to the internal xbuf2 for a preliminary test.
2017-05-0941078: Empty psvar could cause bad dereference in prompt expansionPeter Stephenson1-1/+1
2017-05-0840173: Off-by-one error checking for {varid}.Peter Stephenson1-1/+1
This caused a single unprintable character in braces before a redirection to be treated as an indentifier.
2017-05-08users/22688: Allow mixing redirs and arguments after anon functions.Peter Stephenson1-4/+15
These are parsed differently from the case of normal functions which can't take normal arguments at that point.
2017-05-08Fix combination of HERE document and |&.Peter Stephenson1-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.
2017-05-0341043: Close pipes in shell when disowning background job.Peter Stephenson1-0/+1
This was missing in the case of &,, causing a file descriptor leak.
2017-04-2841020: Fix "command -p"; "-p" was incorrectly left in command argumentsPeter Stephenson1-1/+8
Also add tests for known precommand modifier issues.
2017-04-2741012: Fix premature exit from nested function in EXIT trap.Peter Stephenson3-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.
2017-04-2641008: Handle expansions for precommand modifiersPeter Stephenson2-35/+135
2017-04-2340995: Don't disable alias expansion when finding command substitution limitsPeter Stephenson1-3/+0
This is needed in some unusual cases in order to identify the exit condition without encountering a parse error.
2017-04-2340994: unmeta_one() need not count MetaJun-ichi Takimoto1-8/+1
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-1540977: "emulate" disallows "--help" and "--version"Barton E. Schaefer1-2/+2
2017-04-1040935: User names need metafying.Orlov Sergey1-3/+3
On some systems they can contain 8-bit characters and on all systems this is logically correct anyway.
2017-04-0740940: untokenize names of condition features before attempting to look up ↵Bart Schaefer1-2/+2
the definition from a module. Necessary because of 40760 (tokenization of '-' as Dash).
2017-04-0440933: Ensure we get job text in sourced files.Peter Stephenson1-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.
2017-04-0340932: Parameter subscripts need to count parentheses.Peter Stephenson1-3/+8
Otherwise they can terminate in the middle of an expression.
2017-04-0240929 (replaces 40598): paramsubst() should always return scalar when ↵Barton E. Schaefer1-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.
2017-03-2340891: fix more zero-length matches.Peter Stephenson1-1/+3
This time at the end of the trial string.
2017-03-2322601: Fix for parameter substitution pattern matches.Peter Stephenson1-2/+6
It was not possible to math against a zero-length string in some cases.
2017-03-1140832: fix $x:P when PWD=/Barton E. Schaefer1-2/+10
2017-03-1040819: Fix IS_DASH test in BRACE_CCL handlingPeter Stephenson1-1/+2
2017-03-10unposted: declare file local variables as staticJun-ichi Takimoto1-2/+2