summaryrefslogtreecommitdiff
path: root/Src
AgeCommit message (Collapse)AuthorFilesLines
2018-08-1743294: Add ZLE_RECURSIVE parameter.Peter Stephenson2-0/+19
2018-08-1343275: Add log2 to match funcdana1-0/+10
2018-08-0943264: fix ${+assoc[nonexistent]} with KSH_ARRAYSPeter Stephenson1-1/+1
2018-08-0843261: Fix unary minus with base.Peter Stephenson1-2/+13
Apply unary minus to a complete lexical constant rather than the first component that comes along.
2018-08-0143227: fix memory leaks in term{cap,info}.cJun-ichi Takimoto3-20/+45
2018-07-3143219 (except term{cap,info}.c): fix several memory leaksJun-ichi Takimoto6-4/+11
2018-07-3043225: Recalculate ZLE timeout.Peter Stephenson1-0/+2
Needed when looping owing to having handled a special fd.
2018-07-1043156, 43157: Need to allow for extra space in gethere().Peter Stephenson1-3/+5
The point can now increment twice per iteration.
2018-07-09users/23531: Error exit/return fixes.Peter Stephenson1-0/+17
Fix regression with trap on left hand side of pipe. Fix forced return from shell structure within nested function. Fix tests exiting too early. Add new test case.
2018-06-2543091: In the (u) glob qualifier, expand and correct "unknown user" error ↵Daniel Shahaf1-2/+4
messages.
2018-06-2543084: Variable warning suppression enhancements.Peter Stephenson1-3/+5
Add vared -g option along the lines of typeset -g. Set reply safely in zsh_directory_name_cdr.
2018-06-2043075: Support nanosecond-precision time formattingdana6-59/+81
* Teach ztrftime() %9. and %N for nanoseconds * Update prompt expansion to pass sub-second times for time formatting * Update zsh/stat to pass sub-second times for atime/mtime/ctime Patch heavily based on Oliver's earlier work @ workers/24059
2018-06-2043077: Fix shift builtin status.Peter Stephenson1-1/+6
If the math evaulation to get the shift count failed the status wasn't passed back from the builtin.
2018-06-18433029: Testing signal return type is no longer neededEitan Adler3-3/+3
2018-06-1743039: Mark functions_source (et al.) for auto-loadingdana2-1/+2
2018-06-15users/23472: Add $sysparams[procsubstpid] to zsh/systemPeter Stephenson3-0/+15
2018-06-1543008: Improve code to remove privileges.Peter Stephenson1-7/+24
Remove warnings of unused values as we always check the finally result later. Put segid before setuid as the setgid could fail if UID no longer privileged.
2018-06-0642938: name argument to math_func is not unusedEitan Adler1-1/+1
2018-06-0642939: pm argument to set_registers is not unusedEitan Adler1-1/+1
2018-05-3142870: another improvement of 'compset -q'Jun-ichi Takimoto1-4/+6
zlemetall need not count the 'x' added at the cursor in set_comp_sep()
2018-05-2542809: slightly improve 'compset -q'Jun-ichi Takimoto1-3/+6
2018-05-1742790: make [[:blank:]] match non-ASCII blanksStephane Chazelas1-2/+17
2018-05-1742793: Always define FDT_PROC_SUBST even if not needed.Peter Stephenson2-8/+3
This avoids proliferating #ifdef's.
2018-05-1742785: Allow redefining math function to work silently.Peter Stephenson1-9/+4
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-1442297: (e) subscript flag needs extra work with scalarsdana1-3/+17
2018-05-1442234: Stephane: don't kill a process if not running.Peter Stephenson1-3/+15
This could happen when kiiling a job. The processs might be reused.
2018-05-1342488: test cases for 42369 and address some issues in the codeOliver Kiddle3-54/+44
2018-05-13Nelson H. F. Beebe: 19597 (rebased 42369): return Inf, NaN etc from floating ↵Oliver Kiddle3-51/+58
point operations instead of errors to allow non-stop IEEE 754 arithmetic
2018-05-1342760: move stack variable outside while loop scope as it is accessed in the ↵Oliver Kiddle1-1/+1
while condition
2018-05-1142185: safety when removing separators in completiondana1-1/+2
2018-05-1142101 (tweaked): assigning shell status to array was brokendana1-2/+6
2018-05-0842751: Protect shell status in ZLE timed function handler.Peter Stephenson1-0/+4
Otherwise status from sched and other asynchronous functions could escape back to the main shell.
2018-05-01unposted (branch fork_early): Fork early for pipelines.Peter Stephenson1-82/+63
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-04-2947201: fix 42355 for multiple backslashesRicardo Giorni1-6/+6
2018-04-25unposted: Correct process substitution buffer size in the PATH_DEV_FD codepath.Daniel Shahaf1-1/+1
2018-04-2442708: fix for process substitution.Peter Stephenson3-10/+18
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-2342705: Another safety fix for pgrp reclaiming.Peter Stephenson1-1/+2
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-23Allow short loops with "while"Peter Stephenson1-1/+3
2018-04-2042684 (with extra comments): Fork early if in bg.Peter Stephenson1-95/+135
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-1942686: Fix previous pgrp patch.Peter Stephenson1-1/+2
We shouldn't do any fix ups unless the process has actually exited.
2018-04-1742630: Improve process group handling in pipelines.Peter Stephenson2-1/+29
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-1542650: fix 42156 for zero-sized terminalsBarton E. Schaefer1-5/+7
Also fix harmless no-op typo from hand-applying 42636 for previous commit.
2018-04-1542636: fix GLOB_DOTS for !(RM_STAR_SILENT)Barton E. Schaefer1-4/+5
Also fix paste-o in older log entry
2018-04-1242624 (plus test): avoid freeing memory that's still neededOliver Kiddle1-5/+9
This was occurring in a multiple function definition where a function name is duplicated.
2018-04-0742605: properly free the vi registers hashOliver Kiddle3-4/+16
2018-04-0742601: tidy up code for set -A/+A to not increment a NULL pointer and to be ↵Oliver Kiddle1-6/+4
more efficient
2018-04-0742607, CVE-2018-1100: check bounds on buffer in mail checkingOliver Kiddle1-3/+5
2018-04-0742600: error paths for _values leaked the exclusion list arrayOliver Kiddle1-0/+4
2018-04-0742597: plug memory leak found by coverityOliver Kiddle1-1/+3
2018-04-0742595: remove dead code flagged by coverityOliver Kiddle1-3/+1