Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 43219 (except term{cap,info}.c): fix several memory leaks | Jun-ichi Takimoto | 2018-07-31 | 1 | -1/+2 |
| | |||||
* | 41668: New --emulate option on invocation. | Peter Stephenson | 2017-09-11 | 1 | -34/+98 |
| | | | | | | | | This sets the shell emulation mode similarly to ARGV0=... which doesn't work from other shells. Note that this gives more comprehensive emulation than running emulate within the shell. | ||||
* | 41590 modified as 41595: make ERR_RETURN more logical. | Peter Stephenson | 2017-08-24 | 1 | -2/+2 |
| | | | | | | | | It now operates separately at each function depth. To keep ERR_EXIT global, make the noerrexit variable usd bit flags. Extend tests. | ||||
* | 40977: "emulate" disallows "--help" and "--version" | Barton E. Schaefer | 2017-04-15 | 1 | -2/+2 |
| | |||||
* | 40745 + 40753: Fix 'unset ZLE_RPROMPT_INDENT' not restoring the default ↵ | Daniel Shahaf | 2017-03-08 | 1 | -1/+1 |
| | | | | | | | | | | behaviour. To reproduce: RPS1=foo ZLE_RPROMPT_INDENT=42 unset ZLE_RPROMPT_INDENT | ||||
* | 39545: Add some missing unqueue_signals(). | Peter Stephenson | 2016-10-03 | 1 | -1/+3 |
| | | | | All of these are added simply to fit existing logic in other branches. | ||||
* | 39167: Make $ENV handling more like POSIX | Teubel György | 2016-09-05 | 1 | -11/+14 |
| | |||||
* | 38086: shuffle init code to localize a global, add $ZSH_ARGZERO, refine ↵ | Greg Klanderman | 2016-03-06 | 1 | -5/+8 |
| | | | | | | $ZSH_SCRIPT (also a couple of ChangeLog typos corrected -- Bart) | ||||
* | unposted: fix init_io() calls in previous change | Peter Stephenson | 2015-12-04 | 1 | -0/+2 |
| | |||||
* | 37294: Add ZSH_EXECUTION_STRING. | Peter Stephenson | 2015-12-04 | 1 | -13/+15 |
| | | | | This shows the argument to shell option -c. | ||||
* | 37161: Disable the heuristic setting RPROMPT_INDENT to 0 | Mikael Magnusson | 2015-11-20 | 1 | -2/+4 |
| | |||||
* | 36090: keep signals queued for preprompt() | Barton E. Schaefer | 2015-08-11 | 1 | -2/+0 |
| | |||||
* | 36022 fix bug that some loop constructs could not be interrupted, revise ↵ | Barton E. Schaefer | 2015-08-09 | 1 | -0/+5 |
| | | | | | | | | | | | signal queueing There are two underlying ideas here: (1) Keeping signals queued around anything that's doing memory management (including push/pop of the heap) has become crucial. (2) Anytime the shell is going to run a command, be it buitin or external, it must be both safe and necessary to process any queued signals, so that the apparent order of signal arrival and command execution is preserved. | ||||
* | 35826: add getsparam_u() to return unmetafied string, use it for a number of ↵ | Barton E. Schaefer | 2015-07-22 | 1 | -1/+1 |
| | | | | references to non-special params | ||||
* | 35482: be consistent about how argzero is allocated | Barton E. Schaefer | 2015-06-16 | 1 | -2/+3 |
| | |||||
* | 34961: replace a couple of free() with zfree() for consistency | Barton E. Schaefer | 2015-04-25 | 1 | -1/+1 |
| | |||||
* | 34322: bug with interface to parsestr() etc. | Peter Stephenson | 2015-01-18 | 1 | -4/+7 |
| | | | | | | | Was showing up in places like ${(e)...} where command substitution could reallocate the token string, but actually there was never any guarantee that the lexer wouldn't do that, so this was always a bit iffy. | ||||
* | Rearrange context saving. | Peter Stephenson | 2015-01-09 | 1 | -2/+2 |
| | | | | | | | 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. | ||||
* | Fix command substitutions to parse contents as they are read in. | Peter Stephenson | 2015-01-08 | 1 | -1/+2 |
| | | | | | | | Do this by refactoring misnamed lexsave()/lexrestore() to allow continuity of history and input. Add test. | ||||
* | 33876: etc.: Separate errors and keyboards interrupts | Peter Stephenson | 2014-12-11 | 1 | -4/+25 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | 33531 with additions: retain status of exited background jobs. | Peter Stephenson | 2014-10-26 | 1 | -1/+0 |
| | | | | | | | | Add linked list of unwaited-for background jobs. Truncate at value of _SC_CHILD_MAX discarding oldest. Remove old lastpid_status mechanism for latest exited process only. Slightly tighten safety of permanently allocated linked lists so that this doesn't compromise signal handling. | ||||
* | 33445: fix handling of -s when combined with -i at shell invocation | Barton E. Schaefer | 2014-10-12 | 1 | -4/+16 |
| | | | | | | Fixes a long-standing (25+ years) bug where using -i -s together did have the documented effect of disabling command line script files but also had the side-effect of invoking ZLE, thereby ignoring the redirected input. | ||||
* | 33268: interactive shells treat SIGPIPE like SIGHUP if and only if SHTTY is ↵ | Barton E. Schaefer | 2014-09-29 | 1 | -0/+1 |
| | | | | disconnected | ||||
* | 33212: try to put /usr/local/share/zsh/site-functions in default fpath | Peter Stephenson | 2014-09-20 | 1 | -11/+22 |
| | |||||
* | 33143: POSIX_ARGZERO more closely matches bash et al. | Barton E. Schaefer | 2014-09-12 | 1 | -1/+2 |
| | |||||
* | 32634: add POSIX_ARGZERO option | Barton E. Schaefer | 2014-06-01 | 1 | -2/+3 |
| | |||||
* | 32365: another stab at the heuristic for initializing rprompt_indent | Barton E. Schaefer | 2014-02-08 | 1 | -2/+3 |
| | |||||
* | 32341: heuristic initialization of ZLE_RPROMPT_INDENT | Barton E. Schaefer | 2014-02-02 | 1 | -11/+1 |
| | |||||
* | 32340: improve error messages for "read -c" / "read -l" | Barton E. Schaefer | 2014-02-02 | 1 | -1/+1 |
| | |||||
* | 32157: fix extra line feed after prompt, and erased character in completion ↵ | Barton E. Schaefer | 2013-12-18 | 1 | -1/+14 |
| | | | | listing, when ZLE_RPROMPT_INDENT=0 | ||||
* | 32099: change pointer declaration to avoid arithmetic on (void *). | Barton E. Schaefer | 2013-12-10 | 1 | -1/+1 |
| | |||||
* | 31919: fix deadlock when a shell builtin with a multio redirection is used ↵ | Barton E. Schaefer | 2013-10-27 | 1 | -0/+1 |
| | | | | | | | | | on the left side of a pipeline Make sure stdin/out/err file descriptors are closed for the multio copy process, which means not re-using those descriptors after they are closed and marked FDT_UNUSED in fdtable[]. For completeness, initialize their fdtable[] state to FDT_EXTERNAL. | ||||
* | 31361: handle negative optno ("no" prefix used) | Bart Schaefer | 2013-04-30 | 1 | -3/+4 |
| | | | | when storing options with parseopts_insert() for sticky contexts | ||||
* | 31350: block SIGWINCH nearly all the time, except | Bart Schaefer | 2013-04-30 | 1 | -0/+1 |
| | | | | | when about to calculate prompts or do synchronous read, so syscalls are not interrupted by window size changes. | ||||
* | 30789: Add CONTINUE_ON_ERROR for old behaviour. | Peter Stephenson | 2012-11-15 | 1 | -2/+7 |
| | | | | | New behaviour is for scripts to exit on error instead of returning to top level and executing the next command. | ||||
* | 30726: make shell options passed to emulate stick along with the emulation | Peter Stephenson | 2012-10-11 | 1 | -7/+37 |
| | |||||
* | 30722: fix some cases where emulations or options were not propagated properly | Peter Stephenson | 2012-10-07 | 1 | -25/+44 |
| | | | | from the emulate command | ||||
* | 30715: use enum lextok for variables containing lexical tokens | Peter Stephenson | 2012-10-05 | 1 | -1/+1 |
| | |||||
* | add some braces to avoid compiler warnings | Peter Stephenson | 2012-03-30 | 1 | -7/+9 |
| | |||||
* | 30320: "emulate" accepts invocation-time flags; other small doc tweaks. | Bart Schaefer | 2012-03-07 | 1 | -48/+71 |
| | |||||
* | 30084: `zle -T tc func' for zle testing of termcap output | Peter Stephenson | 2012-01-05 | 1 | -0/+13 |
| | |||||
* | 30084: missing zsfree(argzero) | Peter Stephenson | 2012-01-04 | 1 | -0/+1 |
| | |||||
* | 29165: use term.h globally if needed at all. | Peter Stephenson | 2011-05-09 | 1 | -2/+2 |
| | |||||
* | 29008, 29012: Add `--enable-additional-fpath' option to add arbitrary ↵ | Frank Terbeck | 2011-04-18 | 1 | -2/+19 |
| | | | | directories to the default `$fpath'. | ||||
* | users/15770 HASH_DIRS tracks INTERACTIVE | Bart Schaefer | 2011-02-11 | 1 | -0/+3 |
| | |||||
* | Paul 28538 / me 28540 / couple of unposted casts: | Peter Stephenson | 2010-12-20 | 1 | -1/+1 |
| | | | | use char * for pointer arithmetic rather than void * | ||||
* | 28073: allow #! scripts to search path if interpreter not found | Peter Stephenson | 2010-07-15 | 1 | -19/+1 |
| | |||||
* | 28006: make zgetcwd() fall back to pwd, | Peter Stephenson | 2010-06-08 | 1 | -1/+3 |
| | | | | only use "." if setting pwd | ||||
* | 27951: Add $ZSH_EVAL_CONTEXT and $zsh_eval_contxt | Peter Stephenson | 2010-05-12 | 1 | -3/+3 |
| | |||||
* | 27793 and follow ups: add PATH_SCRIPT option to find script using $PATH | Peter Stephenson | 2010-03-16 | 1 | -21/+83 |
| |