Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unposted (branch fork_early): Fork early for pipelines. | Peter Stephenson | 2018-05-01 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If executing a command not at the end of a pipeline, and not optimised in the calling code, we can fork before "prefork" substitutions, at the same point as for background commands. Move fork before our preliminary scan of arguments to find a command: in the cases of early fork we don't need this information before forking. Ensure we _exit if forked in execcmd_exec(). Rationalise use of forks and pipes. Ensure we _exit instead of returning from execcmd_exec() if we have forked. Before the optimisation code after the fork always ran to the check at the end, but that code is overkill for the logic between the early fork and the existing one. Remove old workaround to fork in caller of execcmd for current shell constructs as no longer needed with early fork below. Close input of newly created pipe on fork (destined for RHS of pipe which we never execute): this replaces a workaround from zsh-workers/32171, commit 9887fc3d7b. Set last1 on early fork as needed by some instances of shell constructs on LHS of pipeline to know they are exiting. | ||||
* | 42730: Complete the options for rmdir | Matthew Martin | 2018-04-29 | 1 | -0/+3 |
| | |||||
* | 42729: update df completion for [DFNO]BSD | Matthew Martin | 2018-04-29 | 1 | -0/+3 |
| | |||||
* | 42676: deal with system specific arguments in dd completion | Oliver Kiddle | 2018-04-29 | 1 | -1/+4 |
| | |||||
* | 42728: update options in libtiff tools completion and add handling for tiff2pdf | Oliver Kiddle | 2018-04-29 | 1 | -0/+5 |
| | |||||
* | 47201: fix 42355 for multiple backslashes | Ricardo Giorni | 2018-04-29 | 1 | -0/+4 |
| | |||||
* | c.f. 42726: Back off fg and bg tests. | Peter Stephenson | 2018-04-26 | 1 | -0/+5 |
| | | | | | | | | | This is too hard to make robust. Problems include - Reading input in different places causes lines to appear and disappear - There is no easy way to sequence the asynchronous operations following bg. - Response to job control of user commands on some OSes (MacOS, for example) is unpredicatble. | ||||
* | 42722: Replace ed with dc in fg/bg tests. | Peter Stephenson | 2018-04-25 | 1 | -0/+3 |
| | | | | | | This should be even simpler. Also more fix ups for failed pattern diffs. | ||||
* | unposted: Correct process substitution buffer size in the PATH_DEV_FD codepath. | Daniel Shahaf | 2018-04-25 | 1 | -0/+5 |
| | |||||
* | 42714: Add fg and bg tests. | Peter Stephenson | 2018-04-25 | 1 | -0/+6 |
| | | | | | | | Use ed to get minimal user interaction without needing advanced terminal handling. Improve test output of failures of pattern differences. | ||||
* | 42708: fix for process substitution. | Peter Stephenson | 2018-04-24 | 1 | -0/+7 |
| | | | | | | | | | Don't close associated file descriptors in the closem() tidy up function as they should remain visible to external processes. Override if about to exit. Unit test for the failing case: note this relies on the existence of /proc/self/fd or equivalent. | ||||
* | 42705: Another safety fix for pgrp reclaiming. | Peter Stephenson | 2018-04-23 | 1 | -0/+3 |
| | | | | | | Only do this if killpg(dead_pid, 0) returns -1, indicating the pgprp doesn't exist any more, else there is a race if other proceses have started using it. | ||||
* | Allow short loops with "while" | Peter Stephenson | 2018-04-23 | 1 | -0/+4 |
| | |||||
* | 42684 (with extra comments): Fork early if in bg. | Peter Stephenson | 2018-04-20 | 1 | -0/+5 |
| | | | | | | | In execcmd the case of running the last command in a pipeline asynchronously for the purpose of & and &! is easy to work out, and we can avoid side effects and unnecessary execution time in the parent shell by forking earlier. | ||||
* | 42686: Fix previous pgrp patch. | Peter Stephenson | 2018-04-19 | 1 | -0/+5 |
| | | | | | We shouldn't do any fix ups unless the process has actually exited. | ||||
* | 42630: Improve process group handling in pipelines. | Peter Stephenson | 2018-04-17 | 1 | -0/+5 |
| | | | | | | | | | If process group leader exits, allow a newly forked process to become process leader. If a foreground job, reattach the shell to the terminal until that happens. Unblock signals when reading output for command subsitution so that we can do this reattaching immediately. | ||||
* | unposted: update version to 5.5.1-dev-0 | Peter Stephenson | 2018-04-17 | 1 | -0/+4 |
| | |||||
* | unposted: Update for release 5.5.1. zsh-5.5.1 | Peter Stephenson | 2018-04-16 | 1 | -0/+5 |
| | |||||
* | 42659: various completion option updates | Oliver Kiddle | 2018-04-16 | 1 | -0/+5 |
| | |||||
* | 42658: allow compact form of option arguments to diffstat | Oliver Kiddle | 2018-04-16 | 1 | -0/+3 |
| | |||||
* | 42643, 42644: new cksum completion | Matthew Martin | 2018-04-16 | 1 | -0/+9 |
| | |||||
* | 42650: fix 42156 for zero-sized terminals | Barton E. Schaefer | 2018-04-15 | 1 | -0/+2 |
| | | | | Also fix harmless no-op typo from hand-applying 42636 for previous commit. | ||||
* | 42636: fix GLOB_DOTS for !(RM_STAR_SILENT) | Barton E. Schaefer | 2018-04-15 | 1 | -1/+5 |
| | | | | Also fix paste-o in older log entry | ||||
* | 42631: _pgrep: pkill: fix completion of signals | Daniel Hahler | 2018-04-13 | 1 | -0/+5 |
| | | | | | This adds the signals after arguments are filtered according to $optchars. | ||||
* | 42624 (plus test): avoid freeing memory that's still needed | Oliver Kiddle | 2018-04-12 | 1 | -0/+6 |
| | | | | | This was occurring in a multiple function definition where a function name is duplicated. | ||||
* | 42623: Add some extra quotes to previous commit | Peter Stephenson | 2018-04-11 | 1 | -0/+5 |
| | |||||
* | 42618: support signal names from multiple include files. | Benedikt Morbach | 2018-04-10 | 1 | -0/+3 |
| | | | | Needed for glibc starting with 2.25. | ||||
* | unposted: update dev version to 5.5-dev-0 | Peter Stephenson | 2018-04-10 | 1 | -0/+4 |
| | |||||
* | 42613: typo fix in _ss | pda | 2018-04-09 | 1 | -0/+4 |
| | |||||
* | unposted: release zsh-5.5 zsh-5.5 | Peter Stephenson | 2018-04-08 | 1 | -0/+4 |
| | |||||
* | c.f. 42499: tera torn: update twisted completion stub for new twist command | Oliver Kiddle | 2018-04-08 | 1 | -0/+5 |
| | |||||
* | 42605: properly free the vi registers hash | Oliver Kiddle | 2018-04-07 | 1 | -0/+3 |
| | |||||
* | 42601: tidy up code for set -A/+A to not increment a NULL pointer and to be ↵ | Oliver Kiddle | 2018-04-07 | 1 | -0/+3 |
| | | | | more efficient | ||||
* | 42607, CVE-2018-1100: check bounds on buffer in mail checking | Oliver Kiddle | 2018-04-07 | 1 | -0/+3 |
| | |||||
* | 42600: error paths for _values leaked the exclusion list array | Oliver Kiddle | 2018-04-07 | 1 | -0/+3 |
| | |||||
* | 42597: plug memory leak found by coverity | Oliver Kiddle | 2018-04-07 | 1 | -0/+2 |
| | |||||
* | 42595: remove dead code flagged by coverity | Oliver Kiddle | 2018-04-07 | 1 | -0/+2 |
| | |||||
* | 42602: Update _gcc as of GCC 7.3.0 for generic options and x86 | Mikael Magnusson | 2018-04-07 | 1 | -0/+5 |
| | |||||
* | 42604: new completions for OpenBSD's signify and vmctl | Matthew Martin | 2018-04-07 | 1 | -0/+4 |
| | |||||
* | github #24: Add completion script for Visual Studio Code | Klas Mellbourn | 2018-04-07 | 1 | -0/+5 |
| | |||||
* | 42590: fix detection of OSTYPE in _fmt | Jun-ichi Takimoto | 2018-04-05 | 1 | -0/+2 |
| | |||||
* | 42585: improve completion for libarchive-based tar | Jun-ichi Takimoto | 2018-04-05 | 1 | -0/+5 |
| | | | | | | Offer all compressed archives if no compression flag is specified because libarchive can automaticaly recoginize them. cf. 42574 (Eitan Adler). | ||||
* | 42591: complete *.changes and *.dsc files alongside *.deb | Oliver Kiddle | 2018-04-05 | 1 | -0/+3 |
| | |||||
* | 42584: complete options for ssh-keyscan and update options for ssh-copy-id | Oliver Kiddle | 2018-04-05 | 1 | -0/+3 |
| | |||||
* | 42583: new column completion | Oliver Kiddle | 2018-04-05 | 1 | -0/+2 |
| | |||||
* | 42582: updates to options in completions for OpenBSD 6.3 | Oliver Kiddle | 2018-04-05 | 1 | -0/+4 |
| | |||||
* | 42575: fix to not complete options in the argument to another option | Oliver Kiddle | 2018-04-05 | 1 | -0/+5 |
| | |||||
* | 42578: _shutdown: add support for macOS | Jun-ichi Takimoto | 2018-04-05 | 1 | -0/+2 |
| | |||||
* | 42577: fix macOS support in _strings | Jun-ichi Takimoto | 2018-04-05 | 1 | -0/+4 |
| | |||||
* | unposted: 5.4.2-test-2 zsh-5.4.2-test-2 | Peter Stephenson | 2018-04-04 | 1 | -0/+2 |
| |