Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 51001: fix for ERR_EXIT with pipeline negation ("!"); update tests | Philippe Altherr | 2022-12-03 | 1 | -5/+8 | |
| | ||||||
* | 51001: fix for ERR_EXIT with "always" blocks; update tests | Philippe Altherr | 2022-12-03 | 1 | -0/+1 | |
| | ||||||
* | 51001: Reverts 8839e969b, most of 1ba8714a, and d873ed60. | Philippe Altherr | 2022-12-03 | 2 | -9/+7 | |
| | | | | Also correct ChangeLog | |||||
* | 51080: allow multibyte chars in glob qualifier (u:uname:) | Jun-ichi Takimoto | 2022-12-02 | 1 | -1/+1 | |
| | ||||||
* | 51079: metafy sep in array subscript flag (s:sep:) | Jun-ichi Takimoto | 2022-12-02 | 1 | -3/+7 | |
| | | | | this enable sep to contain \0 etc. | |||||
* | 50934: use OSC 52 escape sequence when copying to "* or "+ vi buffers | Oliver Kiddle | 2022-11-17 | 3 | -4/+40 | |
| | ||||||
* | 50929: fix handling of ERR_RETURN bent by 50928. | Bart Schaefer | 2022-11-09 | 1 | -1/+1 | |
| | ||||||
* | 50928: fix tests for 50897, mention behavior change in NEWS | Bart Schaefer | 2022-11-09 | 1 | -0/+2 | |
| | ||||||
* | 50922: fix additional cases of signals for current shell jobs on the right ↵ | Bart Schaefer | 2022-11-09 | 2 | -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. | |||||
* | 50897: nonzero status of complex commands should trigger ERR_EXIT | Bart Schaefer | 2022-11-08 | 2 | -7/+7 | |
| | ||||||
* | users/28338: command substitution with alias edge case. | Peter Stephenson | 2022-11-08 | 1 | -0/+8 | |
| | | | | See added regression test. | |||||
* | 50874: fix handling of tty signals for jobs in the current shell when ↵ | Bart Schaefer | 2022-11-06 | 1 | -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). | |||||
* | 50851: restore typtab when necessary | Jun-ichi Takimoto | 2022-11-02 | 2 | -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. | |||||
* | Unposted: Fix typo in comment | Bart Schaefer | 2022-10-23 | 1 | -1/+1 | |
| | ||||||
* | 50736: silence use-after-free warning (gcc-12.2) | Wesley Schwengle | 2022-10-17 | 1 | -4/+4 | |
| | ||||||
* | 50668: treat 8bit chars correctly when multibyte is unset | Jun-ichi Takimoto | 2022-09-27 | 1 | -1/+1 | |
| | | | | | The problem was found in character range, but may have existed in other occasions | |||||
* | 50658 + test: Enable to switch between C/UTF-8 locales in PCRE | Jun-ichi Takimoto | 2022-09-26 | 1 | -8/+2 | |
| | ||||||
* | 50418: use setenv(3)/getenv(3) on newer macOS | Jun-ichi Takimoto | 2022-07-24 | 1 | -1/+2 | |
| | ||||||
* | 50379/50380: fix off-by-one side-effect of workers/49906 that broke $(jobs -l) | Bart Schaefer | 2022-06-21 | 1 | -1/+1 | |
| | ||||||
* | 50368: adjust ztie'd bitflags so local variables cannot mess with database | Bart Schaefer | 2022-06-21 | 1 | -3/+3 | |
| | ||||||
* | 50355: documentation and return status consistency in zsh/system module | Bart Schaefer | 2022-06-11 | 1 | -2/+17 | |
| | ||||||
* | 50363: avoid use of heap memory that depends on parameter scoping | Bart Schaefer | 2022-06-09 | 1 | -1/+11 | |
| | ||||||
* | 50359: fix bad sticky-emulation in "functions -c" | Matthew Martin | 2022-06-09 | 1 | -1/+1 | |
| | ||||||
* | 50351: "functions -c" can set signal traps | Bart Schaefer | 2022-06-09 | 1 | -1/+16 | |
| | ||||||
* | 50342: fix test added by 50306 | Jun-ichi Takimoto | 2022-06-09 | 1 | -0/+2 | |
| | ||||||
* | 50341: disallow here-document markers containing newline | Bart Schaefer | 2022-06-08 | 1 | -0/+3 | |
| | ||||||
* | Tweaks to MULTI_FUNC_DEF | Peter Stephenson | 2022-06-07 | 1 | -2/+10 | |
| | | | | | | Output multiple function definitions using "function" form. Note exceptions to errors with NO_MULTI_FUNC_DEF | |||||
* | 50325: revert 38150 and fix in calling function cfp_matcher_range() instead | Bart Schaefer | 2022-06-03 | 2 | -2/+2 | |
| | ||||||
* | 50306: fix wait for child that was stopped/continued | Jun-ichi Takimoto | 2022-06-03 | 2 | -8/+22 | |
| | | | | do not call addbgstatus() when child is stopped/continued | |||||
* | 50192: use set{u,g}id() for dropping privilege on NetBSD | Jun-ichi Takimoto | 2022-05-11 | 1 | -0/+10 | |
| | ||||||
* | 50150: Filenames need unmetafy for printing | Bart Schaefer | 2022-04-30 | 1 | -5/+7 | |
| | ||||||
* | 50149: Remove all remaining =(...) files at shell exit | Bart Schaefer | 2022-04-30 | 2 | -0/+13 | |
| | ||||||
* | 50136: Fix =(nosuchcommand) race/deadlock first reported in workers/42609 | Bart Schaefer | 2022-04-29 | 1 | -4/+0 | |
| | ||||||
* | 50134: Tweak process group handling to prevent unkillable pipelines | Bart Schaefer | 2022-04-29 | 1 | -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(). | |||||
* | 50133: use read-ahead and lseek-rewind for efficient line-buffered input | Bart Schaefer | 2022-04-28 | 1 | -1/+23 | |
| | ||||||
* | 50101: sysread -o with param adjusted to match documentation | Bart Schaefer | 2022-04-28 | 1 | -4/+0 | |
| | ||||||
* | 50162: Fix multios with current-shell "exec" (aka nullexec). | Bart Schaefer | 2022-04-28 | 1 | -0/+4 | |
| | ||||||
* | 50049: care with signed characters | Peter Stephenson | 2022-04-25 | 2 | -2/+2 | |
| | | | | | Some signed-to-unsigned casts needed for a couple of cases of pointers used as indices. | |||||
* | 50081: reset global mbstate_t variables when LC_CTYPE changes | Jun-ichi Takimoto | 2022-04-20 | 2 | -1/+29 | |
| | ||||||
* | 50080: add missing STOUC() in casemodify() | Jun-ichi Takimoto | 2022-04-20 | 1 | -2/+2 | |
| | ||||||
* | 50068: 'exit' in trap causes calling function to return | Bart Schaefer | 2022-04-14 | 1 | -0/+2 | |
| | ||||||
* | 50042: Another fix for 49915 | Mikael Magnusson | 2022-04-11 | 1 | -1/+1 | |
| | | | | If the last element in the list is a duplicate, we would walk off the end | |||||
* | 49994: Single-byte equivalence of users/22601 and workers/40891 | Bart Schaefer | 2022-04-05 | 1 | -2/+2 | |
| | ||||||
* | 49989: Single byte versions of nice quoting. | Peter Stephenson | 2022-04-05 | 3 | -40/+142 | |
| | | | | | Align interfaces for "nice" printing of characters with those for multibyte to make more available in single-byte compilation. | |||||
* | 49992: further unify single- and multi-byte implementations of nicechar() | Bart Schaefer | 2022-04-04 | 1 | -62/+0 | |
| | ||||||
* | 49991: single-byte brace expansion handles $'\0' and control character ↵ | Bart Schaefer | 2022-04-04 | 2 | -12/+14 | |
| | | | | output aligns with multibyte | |||||
* | 49990: casemodify() avoids metafying characters that it otherwise did not touch | Bart Schaefer | 2022-04-04 | 1 | -5/+14 | |
| | ||||||
* | unposted: Fix typo from 49955 | Bart Schaefer | 2022-04-04 | 1 | -1/+1 | |
| | ||||||
* | 49955: Src/glob.c: fix bad free in incremental-pattern-search matching | Bart Schaefer | 2022-04-04 | 2 | -3/+12 | |
| | ||||||
* | 49957: Brown paper bag for 49915 | Mikael Magnusson | 2022-04-03 | 1 | -2/+2 | |
| | | | | | | The code would crash when n == 0. There's not really any point doing any of this when n is 0 so just skip everything. It also tried to NULL terminate a list a little to eagerly. |