Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 41239: Save and restore default history event on context stack. | Peter Stephenson | 2017-06-07 | 1 | -0/+1 |
| | | | | | This ensures that the default event set by an expansion in ZLE doesn't propagate to the command line expansion. | ||||
* | 41164: Don't free a history entry if it's curline. | Peter Stephenson | 2017-05-30 | 1 | -1/+0 |
| | | | | | | 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. | ||||
* | 41113 (tweaked): Save current line linkage to history ring. | Peter Stephenson | 2017-05-18 | 1 | -0/+1 |
| | | | | | | | | | | 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 | 1 | -11/+1 |
| | | | | If wcwidth() or iswprint() is broken, force enable unicode9. | ||||
* | 40760: Always tokenize unquoted - to Dash. | Peter Stephenson | 2017-03-07 | 1 | -0/+10 |
| | | | | | | This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care. | ||||
* | 40536: Prepend directory to $fpath. | Peter Stephenson | 2017-02-13 | 1 | -0/+1 |
| | | | | | | Used if parent function is autoloaded by absolute path so as to find functions in the same suite without shell code modification. | ||||
* | 40439: PAT_HEAPDUP definition just for clarity | Barton E. Schaefer | 2017-01-28 | 1 | -0/+1 |
| | |||||
* | 40391: Add WARN_NESTED_VAR option and functions -W. | Peter Stephenson | 2017-01-23 | 1 | -1/+9 |
| | | | | | These are companions to WARN_CREATED_GLOBAL, warning when a variable from an enclosing scope is altered. | ||||
* | 40335: More care with autoload function path. | Peter Stephenson | 2017-01-12 | 1 | -0/+1 |
| | | | | | | If doing "autoload -X", the path present might actually be location of file containing the function with the autoload -X. Add an explicit flag to say it's a directory for autoload. | ||||
* | Add features associated with autoloading a function using an absolute | Peter Stephenson | 2017-01-11 | 1 | -1/+4 |
| | | | | | | | | | | | | | path. -d defaults to normal fpath -r remembers the path without actually loading. May be combined with -d. -R does the same but it's an error if not found -X can now take a directory path: this is used to output not yet loaded functions that have an associated path. | ||||
* | 40306 with doc tweaks: Change behaviour expanding alias in () function ↵ | Peter Stephenson | 2017-01-10 | 1 | -0/+1 |
| | | | | | | | definition. Now an error unless the () is part of the same error as the name. Add ALIAS_FUNC_DEF option to allow it again. | ||||
* | 40119: correct typo in comment | Oliver Kiddle | 2016-12-08 | 1 | -2/+2 |
| | |||||
* | Extra case for ERR_RETURN and ERR_EXIT. | Peter Stephenson | 2016-12-05 | 1 | -0/+1 |
| | | | | | | Don't trigger just because status is non-zero at end of complex shell construct as this may be a case we've already suppressed. | ||||
* | 40037: Unicode 9 character width support. | Joshua Rubin | 2016-11-29 | 1 | -1/+3 |
| | | | | Enable with --enable-unicode9. | ||||
* | 40035: Cosmetic fixes for comments and documentation. | Eitan Adler | 2016-11-29 | 1 | -1/+1 |
| | | | | Mostly fixes to doubled words. | ||||
* | 39521: Refactor start of execcmd(). | Peter Stephenson | 2016-10-03 | 1 | -0/+16 |
| | | | | | | By splitting into _analyse and _exec execpline2() has easier access to the state at the start of execution. Use this to ensure we fork if this is a builtin with no arguments. | ||||
* | 39498: use PRIVILEGED option to decide on problematic parameter imports | Peter Stephenson | 2016-09-30 | 1 | -1/+1 |
| | |||||
* | 39460: Don't import PS4 if running as root. | Peter Stephenson | 2016-09-28 | 1 | -0/+1 |
| | | | | | There was an exploit in bash using SHELLOPTS to turn on xtrace, however this can't happen in zsh, so this is simply a precaution. | ||||
* | 39331: Reparent subjob on fork with exited superjob. | Peter Stephenson | 2016-09-16 | 1 | -1/+4 |
| | | | | | | | | | | | 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. | ||||
* | zsh-users/21903: Fix ${...?...} in interactive shell. | Peter Stephenson | 2016-09-14 | 1 | -1/+8 |
| | | | | | 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 Stephenson | 2016-09-13 | 1 | -16/+23 |
| | | | | | This is both in xtrace output and shell code rebuilt from internal structures. | ||||
* | 39181: Add PM_SINGLE and use for compstate. | Peter Stephenson | 2016-09-06 | 1 | -0/+1 |
| | | | | | | | | | | | | 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. | ||||
* | 38809: fix tracking of colour attributes and restore them when turning bold off | Oliver Kiddle | 2016-07-08 | 1 | -1/+1 |
| | |||||
* | 37700: Teach ${(z)} the 'repeat WORD SUBLIST' syntax. | Daniel Shahaf | 2016-01-29 | 1 | -0/+1 |
| | |||||
* | 37689: ! and ^ need to be tokenised in character sets | Peter Stephenson | 2016-01-19 | 1 | -7/+9 |
| | |||||
* | 37678: Now possible to quote "-" in pattern range | Peter Stephenson | 2016-01-19 | 1 | -6/+12 |
| | |||||
* | 37344: restore old printable quoting, add ${(q+)...}. | Peter Stephenson | 2015-12-07 | 1 | -1/+7 |
| | | | | | | The \C- form is only used inside quotedzputs(). ${(q+)...} outputs a quotedzputs() representation. | ||||
* | 37314: upgrade quotedzputs() for non-printable output. | Peter Stephenson | 2015-12-06 | 1 | -0/+6 |
| | | | | | Use nicechar with $'..' quoting; upgrade nicechar() etc. to use suitable output. | ||||
* | 37092: make nested ${(P)name} properly refer to parameter on return | Peter Stephenson | 2015-11-11 | 1 | -12/+39 |
| | |||||
* | 37022: add GLOB_STAR_SHORT option to abbreviate ** and *** | Peter Stephenson | 2015-10-30 | 1 | -0/+1 |
| | |||||
* | 37014: Improved internal parameter setting. | Peter Stephenson | 2015-10-29 | 1 | -3/+0 |
| | | | | | | | | Enhance WARNCREATEGLOBAL to work in many more cases. Don't create REPLY as an integer if it didn't previously exist as one, even if the value to be set is integral, as this is likely to mess up later uses of REPLY. | ||||
* | 36941: Mark file descripors in ztcp as used. | Peter Stephenson | 2015-10-24 | 1 | -4/+11 |
| | | | | | Allow such file descriptors to be either internal and closed on exec or external and so managed explicitly by module. | ||||
* | 36700: unmetafy early for parameter match | Peter Stephenson | 2015-09-29 | 1 | -0/+26 |
| | |||||
* | 36682: expand pattern interface to optimise unmetafication | Peter Stephenson | 2015-09-28 | 1 | -0/+10 |
| | |||||
* | 36577: supplement 36559 to using LONG_MAX for 64-bit long | Peter Stephenson | 2015-09-21 | 1 | -0/+4 |
| | |||||
* | unposted: typo in 36559 | Peter Stephenson | 2015-09-21 | 1 | -1/+1 |
| | |||||
* | 36559: test earlier for overflow in pattern range | Peter Stephenson | 2015-09-19 | 1 | -0/+7 |
| | |||||
* | 36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests. | Peter Stephenson | 2015-09-10 | 1 | -3/+14 |
| | |||||
* | 35793: avoid undefined behaviour shifting signed number | Peter Stephenson | 2015-07-23 | 1 | -3/+4 |
| | |||||
* | 35668: Improved fix for command/proc subst starting in alias. | Peter Stephenson | 2015-07-02 | 1 | -1/+1 |
| | | | | | | Use input flag to suppress the unwanted backtracking. Add test for the extra case covered. | ||||
* | 35667: fix command substitution that starts but doesn't finish in alias | Peter Stephenson | 2015-07-01 | 1 | -0/+1 |
| | |||||
* | 35655: APPEND_CREATE option for POSIX copmatible NO_CLOBBER | Peter Stephenson | 2015-06-29 | 1 | -0/+1 |
| | |||||
* | 35623: All is_array assignments should be treated as having a value. | Peter Stephenson | 2015-06-27 | 1 | -5/+3 |
| | |||||
* | various posts: Implement assignment parsing for typeset. | Peter Stephenson | 2015-06-24 | 1 | -24/+63 |
| | | | | | | | | | | | | Typeset assignments now work like raw assignments except for no "+=" and no GLOB_ASSIGN. Documented in typeset builtin doc and mentioned in release notes. Tests to ensure basic sanity. Enabled by default, can be turned off by "disable -r" with typeset family of commands. | ||||
* | Add non-metafied character length handling. | Peter Stephenson | 2015-06-12 | 1 | -1/+11 |
| | | | | | | | Use this in regex module and add test using $'\ua0'. Rename mb_metacharinit() to mb_charinit() as it does not involve metafied characters. | ||||
* | 35386: expand tabs where useful in builtins outputing function. | Peter Stephenson | 2015-06-05 | 1 | -3/+6 |
| | | | | | | Also add to zed -f. Option is -x <numm>. | ||||
* | 35078: Add backslash quoting to parameter (b) flag from 35067. | Peter Stephenson | 2015-05-11 | 1 | -1/+1 |
| | |||||
* | 35067: Add (b) parameter flag for pattern char backslashing. | Peter Stephenson | 2015-05-10 | 1 | -0/+10 |
| | | | | | | Doc tweak from Daniel in 35071. Includes test. | ||||
* | Don't treat NUL as a combining character | Mikael Magnusson | 2015-05-10 | 1 | -2/+2 |
| | |||||
* | 34784: fix old bug with history word selection | Peter Stephenson | 2015-03-26 | 1 | -2/+3 |
| |