1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-09 22:11:16 +02:00
Commit graph

10482 commits

Author SHA1 Message Date
Oliver Kiddle
373efa085d Nelson H. F. Beebe: 19597 (rebased 42369): return Inf, NaN etc from floating point operations instead of errors to allow non-stop IEEE 754 arithmetic 2018-05-13 10:02:01 +02:00
Oliver Kiddle
f0c2cf8607 42760: move stack variable outside while loop scope as it is accessed in the while condition 2018-05-13 09:51:05 +02:00
Peter Stephenson
c636c4b3b9 unposted: remove mysterious excrescence in ChangeLog 2018-05-11 09:39:33 +01:00
dana
eeeba19c96 42185: safety when removing separators in completion 2018-05-11 09:33:05 +01:00
dana
805192311f 42101 (tweaked): assigning shell status to array was broken 2018-05-11 09:29:14 +01:00
Peter Stephenson
fa441fa20e 42752: enhance git external alias completion
If alias expands to !cmd-name, complete as a normal command
line after cmd-name.
2018-05-08 17:13:12 +01:00
Peter Stephenson
c8ceb66ba3 42751: Protect shell status in ZLE timed function handler.
Otherwise status from sched and other asynchronous functions
could escape back to the main shell.
2018-05-08 10:18:19 +01:00
Eitan Adler
942ac7e6e2 42740: Teach _systat about the 'zarc' screen 2018-05-02 09:12:58 +02:00
Eitan Adler
2d8574ef7d 42732: Add several more entries to ifconfig 2018-05-02 09:09:09 +02:00
Oliver Kiddle
64b60f6926 42743: update vorbis-tools completion and include vorbiscomment with the rest 2018-05-02 08:59:23 +02:00
Peter Stephenson
faf0035e53 unposted (branch fork_early): Fork early for pipelines.
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.
2018-05-01 10:27:35 +01:00
Matthew Martin
11dbc95962 42730: Complete the options for rmdir 2018-04-29 23:54:40 +02:00
Matthew Martin
17af784c5d 42729: update df completion for [DFNO]BSD 2018-04-29 23:49:49 +02:00
Oliver Kiddle
ad9b140213 42676: deal with system specific arguments in dd completion 2018-04-29 23:32:10 +02:00
Oliver Kiddle
563a8d2853 42728: update options in libtiff tools completion and add handling for tiff2pdf 2018-04-29 23:29:40 +02:00
Ricardo Giorni
f7519811e1 47201: fix 42355 for multiple backslashes 2018-04-29 12:05:39 -07:00
Peter Stephenson
2d3b3510a8 c.f. 42726: Back off fg and bg tests.
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.
2018-04-26 09:42:25 +01:00
Peter Stephenson
bdd595321f 42722: Replace ed with dc in fg/bg tests.
This should be even simpler.

Also more fix ups for failed pattern diffs.
2018-04-25 18:16:02 +01:00
Daniel Shahaf
76b5b3a504 unposted: Correct process substitution buffer size in the PATH_DEV_FD codepath. 2018-04-25 15:31:39 +00:00
Peter Stephenson
c6dbd862d0 42714: Add fg and bg tests.
Use ed to get minimal user interaction without needing
advanced terminal handling.

Improve test output of failures of pattern differences.
2018-04-25 10:16:51 +01:00
Peter Stephenson
95d861d028 42708: fix for process substitution.
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.
2018-04-24 11:48:11 +01:00
Peter Stephenson
9ad9c5cda1 42705: Another safety fix for pgrp reclaiming.
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.
2018-04-23 15:11:34 +01:00
Peter Stephenson
11f18457d2 Allow short loops with "while" 2018-04-23 13:45:08 +01:00
Peter Stephenson
9e2afb9298 42684 (with extra comments): Fork early if in bg.
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.
2018-04-20 10:36:39 +01:00
Peter Stephenson
0f29b5148e 42686: Fix previous pgrp patch.
We shouldn't do any fix ups unless the process has actually
exited.
2018-04-19 13:58:10 +01:00
Peter Stephenson
3c74891fcd 42630: Improve process group handling in pipelines.
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.
2018-04-17 17:14:20 +01:00
Peter Stephenson
181f5cfabe unposted: update version to 5.5.1-dev-0 2018-04-17 17:11:39 +01:00
Peter Stephenson
fd4056f4ed unposted: Update for release 5.5.1. 2018-04-16 19:21:52 +01:00
Oliver Kiddle
39f58eb318 42659: various completion option updates 2018-04-16 17:02:56 +02:00
Oliver Kiddle
b69a341619 42658: allow compact form of option arguments to diffstat 2018-04-16 16:53:47 +02:00
Matthew Martin
2cf01b9da8 42643, 42644: new cksum completion 2018-04-16 16:51:16 +02:00
Matthew Martin
637f9809a7 42642 (tweaked for Solaris): OpenBSD chown does not support -f and dragonfly has -x 2018-04-16 16:39:21 +02:00
Barton E. Schaefer
68d9526220 42650: fix 42156 for zero-sized terminals
Also fix harmless no-op typo from hand-applying 42636 for previous commit.
2018-04-15 11:06:43 -07:00
Barton E. Schaefer
517cda3832 42636: fix GLOB_DOTS for !(RM_STAR_SILENT)
Also fix paste-o in older log entry
2018-04-15 10:57:27 -07:00
Daniel Hahler
5bd659352f 42631: _pgrep: pkill: fix completion of signals
This adds the signals after arguments are filtered according to
$optchars.
2018-04-13 11:44:37 +02:00
Oliver Kiddle
65b265f3c0 42624 (plus test): avoid freeing memory that's still needed
This was occurring in a multiple function definition where a
function name is duplicated.
2018-04-12 23:15:29 +02:00
Peter Stephenson
2c4ec9dab0 42623: Add some extra quotes to previous commit 2018-04-11 10:37:23 +01:00
Benedikt Morbach
66f0e5c1ac 42618: support signal names from multiple include files.
Needed for glibc starting with 2.25.
2018-04-10 17:52:35 +01:00
Peter Stephenson
9135097419 unposted: update dev version to 5.5-dev-0 2018-04-10 09:15:34 +01:00
pda
96f393f917 42613: typo fix in _ss 2018-04-09 23:22:25 -04:00
Peter Stephenson
f9e9dce544 unposted: release zsh-5.5 2018-04-08 16:52:30 +01:00
Oliver Kiddle
5bd63f4d69 c.f. 42499: tera torn: update twisted completion stub for new twist command 2018-04-08 10:51:35 +02:00
Oliver Kiddle
8e6c1d8b47 42605: properly free the vi registers hash 2018-04-07 18:52:37 +02:00
Oliver Kiddle
d8753f47bb 42601: tidy up code for set -A/+A to not increment a NULL pointer and to be more efficient 2018-04-07 18:48:00 +02:00
Oliver Kiddle
31f7220563 42607, CVE-2018-1100: check bounds on buffer in mail checking 2018-04-07 18:28:38 +02:00
Oliver Kiddle
4044d73706 42600: error paths for _values leaked the exclusion list array 2018-04-07 14:37:46 +02:00
Oliver Kiddle
90afd36922 42597: plug memory leak found by coverity 2018-04-07 14:37:46 +02:00
Oliver Kiddle
bd05c4b2de 42595: remove dead code flagged by coverity 2018-04-07 14:37:46 +02:00
Mikael Magnusson
583419839f 42602: Update _gcc as of GCC 7.3.0 for generic options and x86 2018-04-07 14:08:26 +02:00
Matthew Martin
a2cb9bbed3 42604: new completions for OpenBSD's signify and vmctl 2018-04-07 11:06:24 +02:00