1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-17 18:51:02 +02:00
Commit graph

10651 commits

Author SHA1 Message Date
dana
32ac8c5bcb 42919: new shuf and uptime completions 2018-06-04 00:19:02 +02:00
dana
3585c28c36 42922: new tac completion 2018-06-04 00:12:41 +02:00
Oliver Kiddle
47f34eff93 42881: update options in ghostscript completion and query more matches directly from it 2018-06-04 00:07:23 +02:00
Oliver Kiddle
780c966972 42920: new dkms completion 2018-06-03 23:58:16 +02:00
Peter Stephenson
4a469dd946 42888: Update installation notes.
Machine-specific part empty pending reports.
2018-06-01 09:14:48 +01:00
Jun-ichi Takimoto
1a97dcbed1 42870: another improvement of 'compset -q'
zlemetall need not count the 'x' added at the cursor in set_comp_sep()
2018-05-31 21:07:53 +09:00
Peter Stephenson
d5e8406729 42865: update config.guess and config.sub.
Copied unmodified from latest GNU distribution.
2018-05-29 09:47:04 +01:00
Eitan Adler
f9560cb03b 42862: Remove AC_PROG_TRADITIONAL from configure.ac.
We don't support machines that ancient any more.
2018-05-29 09:42:31 +01:00
Eitan Adler
cfdd0bd9c7 42863: configure.ac update to latest autoconf conventions 2018-05-29 09:40:07 +01:00
Jun-ichi Takimoto
e5f356a95e 42809: slightly improve 'compset -q' 2018-05-25 21:11:20 +09:00
Oliver Kiddle
5e2d3d1e15 42806: fix shutdown completion where options were lost due to args= assignment where args+= was needed 2018-05-19 11:10:46 +02:00
Oliver Kiddle
25f6f5eebe 42803: handle Linux and the the BSDs in netstat completion 2018-05-19 11:06:52 +02:00
Stephane Chazelas
5ac1c6f555 42790: make [[:blank:]] match non-ASCII blanks 2018-05-17 23:42:27 +02:00
Oliver Kiddle
afec5fb136 42784: complete -s and -x options to the functions builtin 2018-05-17 22:55:33 +02:00
Peter Stephenson
1d2f684c9b 42793: Always define FDT_PROC_SUBST even if not needed.
This avoids proliferating #ifdef's.
2018-05-17 10:00:37 +01:00
Peter Stephenson
ee7dda7806 42785: Allow redefining math function to work silently.
Previously it failed with an error message that the function
was already defined.  This is inconsistent with most other
aspects of shell usage.
2018-05-17 09:32:26 +01:00
dana
b066cc3ea9 42297: (e) subscript flag needs extra work with scalars 2018-05-14 16:54:19 +01:00
Peter Stephenson
449f13a467 42234: Stephane: don't kill a process if not running.
This could happen when kiiling a job.  The processs might be reused.
2018-05-14 16:47:29 +01:00
Oliver Kiddle
a93abe1170 42488: test cases for 42369 and address some issues in the code 2018-05-13 10:13:42 +02:00
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