summary refs log tree commit diff
path: root/Src/exec.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 39470: failure to open a supposedly unique temp file name should result in ↵Barton E. Schaefer2016-09-291-5/+11
| | | | | | an error Also band-aid for signal-related race conditions in temp file name generation
* 39502: Fork for assignment in LHS of pipeline.Peter Stephenson2016-09-291-1/+2
| | | | | | | foo=bar | stuff left the value of foo set to bar as we didn't realise we needed to fork.
* 34943: Fixes for "command" with multiple options.Peter Stephenson2016-09-291-37/+116
| | | | | | These need to combine properly, and alos "command -p" with either -v or -V needs to search for builtins and then using the default system path.
* 39437: use list_pipe_pid in assignment for clarityBarton E. Schaefer2016-09-271-1/+1
|
* 39436: Pass on status of SIGINT better.Peter Stephenson2016-09-251-1/+2
| | | | | | Set lastval to 128 + SIGINT on interrupt. Don't execute builtin if already interrupted at that point.
* 39435: Further fix for pgrp of funny pipelines.Peter Stephenson2016-09-251-1/+2
| | | | | Don't set gleader of SUBJOB at the point of creation if the SUPERJOB has no processes yet.
* 39381: handle save/restore of variable values when "typeset"-related ↵Barton E. Schaefer2016-09-191-2/+2
| | | | reserved words are prefixed by an assignment
* 39362: another race with pipeline handling.Peter Stephenson2016-09-161-25/+9
| | | | | | When forking the shell to control the right hand side, the forked subshell now always starts its own process group, to avoid getting a spurious additional SIGSTOP.
* 39359: Fix remaining race with orphaned subjob.Peter Stephenson2016-09-161-1/+43
| | | | | | When shell is forked to run right hand side of pipieline it should use its own PID as process group if the left hand side of the pipeline has already exited.
* 39331: Reparent subjob on fork with exited superjob.Peter Stephenson2016-09-161-1/+18
| | | | | | | | | | | 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.
* 39305: Fix error handling after parse for here document.Peter Stephenson2016-09-131-1/+1
| | | | | Keep the error status the same as before, but also retain the interrupt status if that was non-zero.
* 39125: More care needed decrementing SHLVL on exec.Stephane Chazelas2016-08-311-4/+7
| | | | Not needed in subshell.
* 39104: do not hash relative paths in findcmd()Barton E. Schaefer2016-08-261-1/+1
|
* 38991: Make 'whence -v autoloaded-function' shows the defining filename.Daniel Shahaf2016-08-051-1/+2
| | | | | | This may also fix a problem whereby the %x prompt escape evaluated to a function name rather than a filename, since %x is also backed by scriptfilename.
* 38653 + 38657: 'functions -T' tracing: recurse into anonymous functions.Daniel Shahaf2016-06-131-3/+9
|
* 38350 (cf. Glenn Smith: 38348): Remove-all warning should warn about the ↵Barton E. Schaefer2016-04-261-2/+2
| | | | root directory as well
* 38114: Fix hang using ^Z with command subst.Peter Stephenson2016-03-091-2/+11
| | | | | In subshells started to perform substitutions disable signals that require interactive handling.
* 37868: add 'static' to file local variablesJun-ichi Takimoto2016-02-031-2/+0
|
* 37473: check for cshnullglob in command position.Barton E. Schaefer2016-01-011-0/+5
|
* 37435 (+ fix typo): allow execution of empty files as "sh" scriptsBarton E. Schaefer2015-12-251-1/+2
|
* 37434: POSIXBUILTINS "command" should prevent shell exit on errors from ↵Barton E. Schaefer2015-12-251-3/+5
| | | | special builtins
* 37202: suppress WARN_CREATE_GLOBAL warnings after a forkPeter Stephenson2015-12-041-1/+1
|
* unposted: fix init_io() calls in previous changePeter Stephenson2015-12-041-1/+1
|
* 37092: make nested ${(P)name} properly refer to parameter on returnPeter Stephenson2015-11-111-7/+9
|
* 36853: replace pushheap/popheap by NEWHEAPS/OLDHEAPS in doshfunc() to ↵Barton E. Schaefer2015-10-141-201/+201
| | | | | | optimize memory management Includes re-indentation that was not done in the posted patch.
* unposted: back out 36707, add test case for 36766Barton E. Schaefer2015-10-031-1/+1
|
* 36766: fix incorrect reset of noerrexit during "if" conditionsBarton E. Schaefer2015-10-031-1/+2
|
* 36707: distinguish ERR_RETURN value of retflag so that execif() can ignore ↵Barton E. Schaefer2015-09-301-1/+1
| | | | it in the test sublist
* 36651: WARN_CREATE_GLOBAL += math expressionsDaniel Shahaf2015-09-271-1/+2
| | | | | Without this, '() { (( x=42 )) }' and '() { for (( i=0; … )) }' wouldn't warn about $x and $i, respectively, being created global.
* 36378: skip directories when looking for files to autoloadPeter Stephenson2015-09-021-1/+3
|
* 36104: change order of child_block() and dont_queue_signals() to resolve yet ↵Barton E. Schaefer2015-08-111-1/+1
| | | | another race condition
* 36022 fix bug that some loop constructs could not be interrupted, revise ↵Barton E. Schaefer2015-08-091-7/+42
| | | | | | | | | | | 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.
* 35849: close fd's from process substitution after forkPeter Stephenson2015-07-231-2/+3
| | | | Leaving these hanging in parent could cause deadlock: test added.
* 35751: Fix ERR_RETURN and ERR_EXIT in "else"Peter Stephenson2015-07-091-1/+7
|
* 35655: APPEND_CREATE option for POSIX copmatible NO_CLOBBERPeter Stephenson2015-06-291-1/+2
|
* 35634: handle failure of gettempname() in namedpipe()Barton E. Schaefer2015-06-271-0/+4
|
* 35604: create empty arrays in typeset with array=()Peter Stephenson2015-06-251-9/+12
|
* various posts: Implement assignment parsing for typeset.Peter Stephenson2015-06-241-18/+158
| | | | | | | | | | | | 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.
* 35493: erase $_ when the command line is an assignmentBarton E. Schaefer2015-06-161-0/+1
|
* GLOB_ASSIGN should only affect scalar assignmentsMikael Magnusson2015-06-021-2/+2
|
* 35318: POSIX_BUILTINS behaviour for getopts.Peter Stephenson2015-05-281-4/+8
| | | | | It needs to keep OPTIND, as well as the index within the string pointed to by OPTIND, global in this case.
* Tweak test for function level of exit.Peter Stephenson2015-05-221-1/+1
| | | | | Sometimes local level jumps so we need an inequality instead of an equality.
* users/20203: nested functions in always blocks when exit pendingPeter Stephenson2015-05-131-1/+9
|
* 34989: AUTO_CD needs to call cd --.Peter Stephenson2015-04-281-0/+1
| | | | Otherwise directories looking like options do the wrong thing.
* 34979: Preserve job text when doing shell job fix.Peter Stephenson2015-04-281-1/+14
| | | | | | This handles list_pipe_text in execlist() along with other variables that are saved and restored and, in the special case of source, cleared.
* 34955: save and restore list_pipe_job with its friendsPeter Stephenson2015-04-241-2/+4
| | | | This is needed to stop source() messing up job control.
* 34900: assignment before an "exec".Peter Stephenson2015-04-151-7/+14
| | | | | | Without POSXIBUILTIN: restore after, so we only get side effects. With POSXIBUILTIN: keep set variable
* 34887: Fix POSIX_BUILTINS with assignment.Peter Stephenson2015-04-151-7/+21
| | | | | | | | | | | In the form var=val command special-builtin-or-func the var is restored after execution, unlike the case where "command" is absent. Clear up case in code that handles this. Add tests.
* 34590: queue_signals() around more scopes that manipulate global stateBarton E. Schaefer2015-02-201-1/+3
|
* 34530: PRINT_EXIT_VALUE with anonymous functions.Peter Stephenson2015-02-161-2/+12
| | | | Simpler fix, avoiding structural changes.