summaryrefslogtreecommitdiff
path: root/Src
AgeCommit message (Collapse)AuthorFilesLines
2022-12-0351094: consistent use of bit-manipulation for noerrexit value changesPhilippe Altherr2-4/+4
2022-12-0351098: remove unreachable NOERREXIT_UNTIL_EXEC code and effectsPhilippe Altherr3-26/+4
2022-12-0351076: fix ERR_EXIT when used with "eval" or "source"; documentary commentsPhilippe Altherr1-3/+43
2022-12-0351071: fix ERR_RETURN for functions in conditional statementsPhilippe Altherr1-7/+5
2022-12-0351001: fix for ERR_EXIT following shell function; update testsPhilippe Altherr1-9/+1
2022-12-0351001: fix for ERR_EXIT with pipeline negation ("!"); update testsPhilippe Altherr1-5/+8
2022-12-0351001: fix for ERR_EXIT with "always" blocks; update testsPhilippe Altherr1-0/+1
2022-12-0351001: Reverts 8839e969b, most of 1ba8714a, and d873ed60.Philippe Altherr2-9/+7
Also correct ChangeLog
2022-12-0251080: allow multibyte chars in glob qualifier (u:uname:)Jun-ichi Takimoto1-1/+1
2022-12-0251079: metafy sep in array subscript flag (s:sep:)Jun-ichi Takimoto1-3/+7
this enable sep to contain \0 etc.
2022-11-1750934: use OSC 52 escape sequence when copying to "* or "+ vi buffersOliver Kiddle3-4/+40
2022-11-0950929: fix handling of ERR_RETURN bent by 50928.Bart Schaefer1-1/+1
2022-11-0950928: fix tests for 50897, mention behavior change in NEWSBart Schaefer1-0/+2
2022-11-0950922: fix additional cases of signals for current shell jobs on the right ↵Bart Schaefer2-8/+6
of a pipeline. Backs out part of 188c5cd5 (workers/50874). With this change, after a new subshell is forked upon suspend of the right side of a pipeline, the previous foreground subjob is resumed first and the new subshell remains stopped until that job finishes.
2022-11-0850897: nonzero status of complex commands should trigger ERR_EXITBart Schaefer2-7/+7
2022-11-08users/28338: command substitution with alias edge case.Peter Stephenson1-0/+8
See added regression test.
2022-11-0650874: fix handling of tty signals for jobs in the current shell when ↵Bart Schaefer1-11/+13
waiting for the right side of a pipeline. Reverts 15bf8ace (workers/50134). Thanks to Jun T. for debugging assistance. Issues came down to two things: 1. update_job() may be called on a process group leader even when a signal was NOT sent to any process in that process group. This caused jobs to be resumed or backgrounded incorrectly or in the wrong order. 2. When there is a current-shell complex command (in braces) on the right side of a pipeline, external processes within it have their own process groups, but a tty signal sent to such a process should be treated as if received by the whole complex command. This fixes: * Suspend/resume of a foreground pipeline within a shell function * Interrupt or suspend/resume of processes in a pipeline ending in { ... } * Interrupt of such a pipeline after exit of the last process in { ... } These affected interactive shells only (MONITOR set plus tty signals).
2022-11-0250851: restore typtab when necessaryJun-ichi Takimoto2-1/+17
inittyptab() must be called when returning from a function with "setopt localoptions MULTIBYTE|BANGHIST|SHSTDIN", and also in function dosetopt() when setting these options (via $options, for example). We intentionally did not take account of the options EMACS/VI because these options are obsolete and their use is not recommended.
2022-10-23Unposted: Fix typo in commentBart Schaefer1-1/+1
2022-10-1750736: silence use-after-free warning (gcc-12.2)Wesley Schwengle1-4/+4
2022-09-2750668: treat 8bit chars correctly when multibyte is unsetJun-ichi Takimoto1-1/+1
The problem was found in character range, but may have existed in other occasions
2022-09-2650658 + test: Enable to switch between C/UTF-8 locales in PCREJun-ichi Takimoto1-8/+2
2022-07-2450418: use setenv(3)/getenv(3) on newer macOSJun-ichi Takimoto1-1/+2
2022-06-2150379/50380: fix off-by-one side-effect of workers/49906 that broke $(jobs -l)Bart Schaefer1-1/+1
2022-06-2150368: adjust ztie'd bitflags so local variables cannot mess with databaseBart Schaefer1-3/+3
2022-06-1150355: documentation and return status consistency in zsh/system moduleBart Schaefer1-2/+17
2022-06-0950363: avoid use of heap memory that depends on parameter scopingBart Schaefer1-1/+11
2022-06-0950359: fix bad sticky-emulation in "functions -c"Matthew Martin1-1/+1
2022-06-0950351: "functions -c" can set signal trapsBart Schaefer1-1/+16
2022-06-0950342: fix test added by 50306Jun-ichi Takimoto1-0/+2
2022-06-0850341: disallow here-document markers containing newlineBart Schaefer1-0/+3
2022-06-07Tweaks to MULTI_FUNC_DEFPeter Stephenson1-2/+10
Output multiple function definitions using "function" form. Note exceptions to errors with NO_MULTI_FUNC_DEF
2022-06-0350325: revert 38150 and fix in calling function cfp_matcher_range() insteadBart Schaefer2-2/+2
2022-06-0350306: fix wait for child that was stopped/continuedJun-ichi Takimoto2-8/+22
do not call addbgstatus() when child is stopped/continued
2022-05-1150192: use set{u,g}id() for dropping privilege on NetBSDJun-ichi Takimoto1-0/+10
2022-04-3050150: Filenames need unmetafy for printingBart Schaefer1-5/+7
2022-04-3050149: Remove all remaining =(...) files at shell exitBart Schaefer2-0/+13
2022-04-2950136: Fix =(nosuchcommand) race/deadlock first reported in workers/42609Bart Schaefer1-4/+0
2022-04-2950134: Tweak process group handling to prevent unkillable pipelinesBart Schaefer1-1/+4
In some cases the process group leader of the forked-left side of a pipe needs to be set to the pipe process PID rather than to the group leader PID returned by entersubsh().
2022-04-2850133: use read-ahead and lseek-rewind for efficient line-buffered inputBart Schaefer1-1/+23
2022-04-2850101: sysread -o with param adjusted to match documentationBart Schaefer1-4/+0
2022-04-2850162: Fix multios with current-shell "exec" (aka nullexec).Bart Schaefer1-0/+4
2022-04-2550049: care with signed charactersPeter Stephenson2-2/+2
Some signed-to-unsigned casts needed for a couple of cases of pointers used as indices.
2022-04-2050081: reset global mbstate_t variables when LC_CTYPE changesJun-ichi Takimoto2-1/+29
2022-04-2050080: add missing STOUC() in casemodify()Jun-ichi Takimoto1-2/+2
2022-04-1450068: 'exit' in trap causes calling function to returnBart Schaefer1-0/+2
2022-04-1150042: Another fix for 49915Mikael Magnusson1-1/+1
If the last element in the list is a duplicate, we would walk off the end
2022-04-0549994: Single-byte equivalence of users/22601 and workers/40891Bart Schaefer1-2/+2
2022-04-0549989: Single byte versions of nice quoting.Peter Stephenson3-40/+142
Align interfaces for "nice" printing of characters with those for multibyte to make more available in single-byte compilation.
2022-04-0449992: further unify single- and multi-byte implementations of nicechar()Bart Schaefer1-62/+0