Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 41239: Save and restore default history event on context stack. | Peter Stephenson | 2017-06-07 | 2 | -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 hashes | Barton E. Schaefer | 2017-06-05 | 1 | -6/+11 |
| | |||||
* | 41191: Check for immortal thingies when checking for specific thingies | Peter Stephenson | 2017-06-01 | 3 | -5/+13 |
| | |||||
* | 41164: Don't free a history entry if it's curline. | Peter Stephenson | 2017-05-30 | 3 | -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 parameter | Sebastian Gniazdowski | 2017-05-28 | 1 | -1/+1 |
| | |||||
* | 41153: finish module setup only after all error conditions have been checked | Sebastian Gniazdowski | 2017-05-28 | 1 | -4/+4 |
| | |||||
* | 41146: careul in GDBM freeing strings with embedded nulls | Sebastian Gniazdowski | 2017-05-24 | 1 | -10/+29 |
| | |||||
* | 40898: fix GDBM error handling | Sebastian Gniazdowski | 2017-05-24 | 1 | -1/+2 |
| | |||||
* | 41142: Ensure close-on-exec is passed to moved file descriptor | Stephane Chazelas | 2017-05-23 | 1 | -10/+20 |
| | |||||
* | 41113 (tweaked): Save current line linkage to history ring. | Peter Stephenson | 2017-05-18 | 3 | -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 Takimoto | 2017-05-12 | 7 | -336/+24 |
| | | | | If wcwidth() or iswprint() is broken, force enable unicode9. | ||||
* | 41096: Don't assume null termination copying string. | Peter Stephenson | 2017-05-11 | 1 | -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 Stephenson | 2017-05-09 | 1 | -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 expansion | Peter Stephenson | 2017-05-09 | 1 | -1/+1 |
| | |||||
* | 40173: Off-by-one error checking for {varid}. | Peter Stephenson | 2017-05-08 | 1 | -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 Stephenson | 2017-05-08 | 1 | -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 Stephenson | 2017-05-08 | 1 | -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 Stephenson | 2017-05-03 | 1 | -0/+1 |
| | | | | This was missing in the case of &,, causing a file descriptor leak. | ||||
* | 41020: Fix "command -p"; "-p" was incorrectly left in command arguments | Peter Stephenson | 2017-04-28 | 1 | -1/+8 |
| | | | | Also add tests for known precommand modifier issues. | ||||
* | 41012: Fix premature exit from nested function in EXIT trap. | Peter Stephenson | 2017-04-27 | 3 | -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 modifiers | Peter Stephenson | 2017-04-26 | 2 | -35/+135 |
| | |||||
* | 40995: Don't disable alias expansion when finding command substitution limits | Peter Stephenson | 2017-04-23 | 1 | -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 Meta | Jun-ichi Takimoto | 2017-04-23 | 1 | -8/+1 |
| | |||||
* | 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. | ||||
* | 40977: "emulate" disallows "--help" and "--version" | Barton E. Schaefer | 2017-04-15 | 1 | -2/+2 |
| | |||||
* | 40935: User names need metafying. | Orlov Sergey | 2017-04-10 | 1 | -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 Schaefer | 2017-04-07 | 1 | -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 Stephenson | 2017-04-04 | 1 | -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 Stephenson | 2017-04-03 | 1 | -3/+8 |
| | | | | Otherwise they can terminate in the middle of an expression. | ||||
* | 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. | ||||
* | 40891: fix more zero-length matches. | Peter Stephenson | 2017-03-23 | 1 | -1/+3 |
| | | | | This time at the end of the trial string. | ||||
* | 22601: Fix for parameter substitution pattern matches. | Peter Stephenson | 2017-03-23 | 1 | -2/+6 |
| | | | | | It was not possible to math against a zero-length string in some cases. | ||||
* | 40832: fix $x:P when PWD=/ | Barton E. Schaefer | 2017-03-11 | 1 | -2/+10 |
| | |||||
* | 40819: Fix IS_DASH test in BRACE_CCL handling | Peter Stephenson | 2017-03-10 | 1 | -1/+2 |
| | |||||
* | unposted: declare file local variables as static | Jun-ichi Takimoto | 2017-03-10 | 1 | -2/+2 |
| | |||||
* | unposted: silence warnings on Cygwin | Jun-ichi Takimoto | 2017-03-10 | 1 | -1/+2 |
| | | | | On Cygwin, h_name in struct hostent is 'const char*' | ||||
* | 40796: MAGIC_EQUAL_SUBST not needed with parsed assignment. | Peter Stephenson | 2017-03-09 | 1 | -5/+20 |
| | | | | | | If typeset family builtins are recognised as keywords then the value is handled as a separate expansion and we don't need the old magic behaviour, even if the option is set. | ||||
* | 40799: fix $- expansion partly broken by 40760 | Barton E. Schaefer | 2017-03-08 | 1 | -1/+3 |
| | |||||
* | 40763: count wide characters and Cmatcher pointers more sanely in ↵ | Barton E. Schaefer | 2017-03-08 | 3 | -58/+60 |
| | | | | | | | cfp_matcher_pats(), and count characters in pattern_match() the same way to stay in sync Might not fix wide-char matching in completion matcher-lists but should avoid wild pointer crash | ||||
* | 40745 + 40753: Fix 'unset ZLE_RPROMPT_INDENT' not restoring the default ↵ | Daniel Shahaf | 2017-03-08 | 2 | -2/+20 |
| | | | | | | | | | | behaviour. To reproduce: RPS1=foo ZLE_RPROMPT_INDENT=42 unset ZLE_RPROMPT_INDENT | ||||
* | 40760: Always tokenize unquoted - to Dash. | Peter Stephenson | 2017-03-07 | 10 | -67/+102 |
| | | | | | | This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care. | ||||
* | 40726: add "zcurses resize" for sane terminal size change | Sebastian Gniazdowski | 2017-03-05 | 1 | -0/+69 |
| | |||||
* | 40781: optimize array assignment, similar to 39995 for string assignment | Sebastian Gniazdowski | 2017-03-04 | 1 | -15/+48 |
| | |||||
* | 40654: exit cleanly from special POSIXBUILTINS in subshells | Barton E. Schaefer | 2017-03-04 | 1 | -0/+1 |
| | | | | This patch overloads the zsh_subshell counter which is meant for $ZSH_SUBSHELL, but no one has suggested a working alternate test. | ||||
* | 40170: Fix up error resetting in curses module. | Sebastian Gniazdowski | 2017-03-03 | 1 | -23/+12 |
| | | | | | Update comment to remove confusion. The comment was based on incorrecto expectations, and the problems referred to seem to be fixed. | ||||
* | 40702: new KEYS_QUEUED_COUNT ZLE variable | Peter Stephenson | 2017-03-03 | 1 | -0/+11 |
| | |||||
* | 40681: strftime builtin should return 1 if ztrftime() returns -1 | Jun-ichi Takimoto | 2017-03-02 | 1 | -2/+6 |
| | |||||
* | 40622 with typos fixed: functions -Ms. | Peter Stephenson | 2017-03-01 | 2 | -13/+42 |
| | | | | | | This adds the capability for mathematical functions based on shell functions to have a string argument. Module functions have had this for a long time. | ||||
* | 40650: redo 40508 and 40626 with comments explaining what is actually going on | Barton E. Schaefer | 2017-02-26 | 1 | -9/+25 |
| | |||||
* | Revert 40626 which broke tests. | Daniel Shahaf | 2017-02-26 | 1 | -2/+2 |
| |