Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add non-metafied character length handling. | Peter Stephenson | 2015-06-12 | 1 | -1/+1 |
| | | | | | | | Use this in regex module and add test using $'\ua0'. Rename mb_metacharinit() to mb_charinit() as it does not involve metafied characters. | ||||
* | 34961: clean up declarations of quote() and quotebreak() | Barton E. Schaefer | 2015-04-25 | 1 | -3/+3 |
| | |||||
* | 34817: Catch some errors earlier when reading history. | Peter Stephenson | 2015-03-29 | 1 | -1/+5 |
| | | | | | | | | Mostly for the case of an interrupt. Don't try to process words when we know something's gone wrong. Also abort history reading earlier on an interrupt. | ||||
* | 34776: improve suppression of alias expansions from history. | Peter Stephenson | 2015-03-25 | 1 | -34/+12 |
| | | | | | Now uses the mechanism in use for other forms of suppression of sections of input. | ||||
* | 34759: improve implementation of last commit | Peter Stephenson | 2015-03-22 | 1 | -1/+2 |
| | |||||
* | 34758: fix yet more history / command subst interaction. | Peter Stephenson | 2015-03-22 | 1 | -1/+13 |
| | | | | | | In general we need to wind back over the history text input inside command substitution because there's no level of the input mechanism between history and the lexer. | ||||
* | 34742: history expansion inside command substitution failed. | Peter Stephenson | 2015-03-19 | 1 | -2/+4 |
| | | | | Needs the case of alias expansion separating out. | ||||
* | 34623: free history more often if "remetafying" | Peter Stephenson | 2015-02-23 | 1 | -2/+6 |
| | |||||
* | 34615 + 34619: Remeta one frame earlier | Mikael Magnusson | 2015-02-23 | 1 | -35/+30 |
| | |||||
* | 34604: Work around problem with changes in Meta characters. | Peter Stephenson | 2015-02-22 | 1 | -3/+37 |
| | | | | | | If reading in a file that contains characters that should be metafied but are not, fix up on the fly. Only need when using HIST_LEX_WORDS. | ||||
* | 34389: fix parsing of ">!" when read from histfile with HIST_LEX_WORDS | Barton E. Schaefer | 2015-01-25 | 1 | -1/+2 |
| | |||||
* | 34365: History lockfile backoff: randomised time. | Peter Stephenson | 2015-01-25 | 1 | -10/+31 |
| | | | | | | | Time doubles on each lock failure. zsleep() provides microsecond resolution for sleep; uses nanosleep() if available, else select via means of existing tty poll function. | ||||
* | 34319: fix alias expansion in history for command substitution | Peter Stephenson | 2015-01-18 | 1 | -6/+20 |
| | |||||
* | unposted: another dubious comment in hist.c fixed | Peter Stephenson | 2015-01-16 | 1 | -2/+2 |
| | |||||
* | unposted: improve comment on hist_in_word(). | Peter Stephenson | 2015-01-16 | 1 | -2/+6 |
| | | | | | Commit f2a2f28f7 was a bit less clear about how hist_in_word() was used than it could be. | ||||
* | 32413: turn off history word marking in cmd subst | Peter Stephenson | 2015-01-16 | 1 | -2/+20 |
| | |||||
* | hist: remove wrong NULL terminator | Mikael Magnusson | 2015-01-10 | 1 | -1/+0 |
| | | | | This actually writes a NULL to some arbitrary location in the caller function's stack. Found by Coverity (Issue 1255746). | ||||
* | Rearrange context saving. | Peter Stephenson | 2015-01-09 | 1 | -2/+86 |
| | | | | | | | Variables are now associated with the module that declares them, being initialised and saved/restored there. However, as many variables are used for communication between modules, many of them are set in multiple places, so the assignment is ambiguous. | ||||
* | 34107: getsubsargs: free ptr1 before returning | Mikael Magnusson | 2015-01-06 | 1 | -0/+1 |
| | | | | Found by Coverity (Issue 439073). | ||||
* | 34106: hist: use zhtricat instead of tricat | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | Found by Coverity (Issue 1255769). | ||||
* | 34118: Don't crash when writing out history if HOST is unset | Mikael Magnusson | 2015-01-06 | 1 | -1/+2 |
| | | | | Found by Coverity (Issue 1255793). | ||||
* | 33876: etc.: Separate errors and keyboards interrupts | Peter Stephenson | 2014-12-11 | 1 | -4/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combination of 12 commits from interrupt_abort branch. Basic strategy is to introduce bits to errflag and to set and reset them separately. Remove interrupt status on return to main keymap. Turn off ERRFLAG_INT for always block. Restore bit thereafter: we probably need a new variable in order to allow user interrupts to be reset in the always block. Add TRY_BLOCK_INTERRUPT This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too. Ensure propagation of SIGINT from exited job. If received by foreground job, shell uses ERRFLAG_INT, not ERRFLAG_ERROR, to set the new state. Reset errflag before precmd() Add always block in _main_completion to fix ZLS_COLORS Ensures we get the right state of $ZLS_COLORS at the end of _main_complete even if there's an interrupt. However, the "right state" is a bit messy as it depends on styles. | ||||
* | 33820: detect support for realpath() with a NULL | Oliver Kiddle | 2014-11-30 | 1 | -25/+22 |
| | | | | argument and fixes to the use of it | ||||
* | 33429: disallow non-integer values for HISTSIZE and SAVEHIST of "fc -p", and ↵ | Barton E. Schaefer | 2014-10-10 | 1 | -3/+6 |
| | | | | fix crash on zero values for same | ||||
* | users/19183: improve unlikely error case with fdopen in history code | Peter Stephenson | 2014-09-29 | 1 | -1/+6 |
| | |||||
* | 33116: followup to 32580 to prevent double-locking with shared or ↵ | Barton E. Schaefer | 2014-09-06 | 1 | -6/+8 |
| | | | | incremental history | ||||
* | 32882 (cf. Augie Fackler 32879): correct reload of backslash-continuation ↵ | Barton E. Schaefer | 2014-07-17 | 1 | -2/+12 |
| | | | | lines from history, fix bad history write of events ending with backslashes | ||||
* | 32682 with tweaks: Add INC_APPEND_HISTORY_TIME. | Peter Stephenson | 2014-06-06 | 1 | -5/+9 |
| | | | | Revert INC_APPEND_HISTORY behaviour. | ||||
* | 32580: avoid indefinite wait in lockhistfile() by checking for lock file ↵ | Barton E. Schaefer | 2014-04-25 | 1 | -15/+32 |
| | | | | | | | time stamp in the future Also change behavior of HIST_FCNTL_LOCK to use only fcntl() locking, rather than applying both kinds of lock. | ||||
* | 32531: fix memory leaks detected by valgrind | Barton E. Schaefer | 2014-04-06 | 1 | -1/+2 |
| | |||||
* | 31823: add HISTORY_IGNORE parameter | Barton E. Schaefer | 2013-10-17 | 1 | -0/+17 |
| | | | | | HISTORY_IGNORE defines a pattern to exclude matching lines in the internal history from the HISTFILE at write time. | ||||
* | 31830: New feature for zshaddhistory hooks. | Peter Stephenson | 2013-10-17 | 1 | -4/+21 |
| | | | | | If the first non-zero return status is 2, save the line on the internal history list, but don't write it out. | ||||
* | 31815: another fix for INCAPPENDHISTORY change. | Peter Stephenson | 2013-10-11 | 1 | -2/+15 |
| | | | | | We need to save immediately if something is pushed on the history stack to ensure we use the right file before popping. | ||||
* | 31797: to match documentation, avoid expanding history when there is neither a | Barton E. Schaefer | 2013-10-08 | 1 | -0/+6 |
| | | | | | | | | | word nor an event designator There are still a few cases where expansion is attempted even though the documentation indicates it will not be, but in most of those cases the expansion will fail. The now-fixed case would fall back to default expansion of the previous command. | ||||
* | 31794: further refinement to INCAPPENDHISTORY change. | Peter Stephenson | 2013-10-07 | 1 | -1/+9 |
| | | | | | | With SHAREHISTORY we should make sure the code behaves as it always did, because it takes care about locking a file once for reading and writing. | ||||
* | 31793: Fix problem with non-interactive history. | Peter Stephenson | 2013-10-07 | 1 | -1/+1 |
| | | | | | Modify 31789 so it doesn't try to save history from hbegin() in that case. | ||||
* | 31789: Save history for INCAPPENDHISTORY later. | Han Pingtian | 2013-10-05 | 1 | -1/+7 |
| | | | | This improves the timing recorded in the history. | ||||
* | 31770: memmove() instead of memcpy() for overlapping regions. | Barton E. Schaefer | 2013-09-26 | 1 | -1/+1 |
| | |||||
* | users/17908: Keep history line in sync between ZLE and shell. | Peter Stephenson | 2013-08-08 | 1 | -0/+10 |
| | | | | Update ZLE version if history is read, pushed or popped with ZLE active | ||||
* | 31750: fix for HISTREDUCEBLANKS option. | Peter Stephenson | 2013-07-24 | 1 | -2/+27 |
| | | | | | Don't truncate line after marked words if there's more non-white-space text, which is probably comments. | ||||
* | 30789: Add CONTINUE_ON_ERROR for old behaviour. | Peter Stephenson | 2012-11-15 | 1 | -1/+1 |
| | | | | | New behaviour is for scripts to exit on error instead of returning to top level and executing the next command. | ||||
* | 30433: double backslash is not line continuation. | Bart Schaefer | 2012-04-21 | 1 | -1/+2 |
| | |||||
* | Timothy Redaelli: file name manipulations | Peter Stephenson | 2012-02-08 | 1 | -0/+5 |
| | | | | in history can return NULL if HAVE_CANONICALIZE_FILE_NAME | ||||
* | 29694: avoid overwriting current history word when not expanding an alias | Bart Schaefer | 2011-08-18 | 1 | -1/+2 |
| | | | | or history event in-place. | ||||
* | unposted: fix a typo in a comment. | Mikael Magnusson | 2011-08-14 | 1 | -1/+1 |
| | |||||
* | users/16131: skip reading empty history file | Peter Stephenson | 2011-07-18 | 1 | -3/+5 |
| | |||||
* | 29542: fix crash in hbegin(), remove bad test | Peter Stephenson | 2011-07-12 | 1 | -37/+113 |
| | | | | 29543: fix backslash-newline within words with histlexwords | ||||
* | 29413: "print -S" for saving to history with lexical word split | Peter Stephenson | 2011-06-03 | 1 | -101/+138 |
| | |||||
* | histlexwords splitting of ";;" in case | Peter Stephenson | 2011-05-27 | 1 | -0/+7 |
| | |||||
* | 29307, 29308 + replies: Fix some doubled words in docs and comments. | Mikael Magnusson | 2011-05-19 | 1 | -1/+1 |
| |