Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | 49933: Add nonblock to sysopen | Matthew Martin | 2022-03-31 | 1 | -1/+4 |
| | |||||
* | 49926: remove unused variable from 49915 | Mikael Magnusson | 2022-03-30 | 1 | -1/+1 |
| | |||||
* | 49906 (Bart), 49911: Fixes to querying jobs in subshell. | Peter Stephenson | 2022-03-30 | 2 | -0/+21 |
| | | | | | | | | Don't attempt to query invalid job off end of table, resulting in crashes from $jobtstates. If background task started in subshell, look at tatsks within subshell instead of main shell. Document and add test. | ||||
* | 49820: Fix a crash when completing with combination of -Q and braces | Mikael Magnusson | 2022-03-30 | 1 | -3/+4 |
| | | | | | | | | | minimal reproducer .zshrc: zstyle ':completion:*' completer _oldlist _complete setopt nolistambiguous autoload compinit; compinit compdef _foo foo;_foo() { compadd -Q -- stash@{{0,1}} } | ||||
* | 49813: <<<: Document newline behavior and fix optimization | Mikael Magnusson | 2022-03-30 | 1 | -1/+3 |
| | | | | | The =(<<<foo) optimization forgot to add a newline, but =(cat<<<foo) always did, make the behavior consistent, and document it. | ||||
* | 49870: Fix NULL reference in match code more | Mikael Magnusson | 2022-03-30 | 1 | -2/+6 |
| | | | | | | | | | | | This reverts "49658: Fix NULL reference in match code." and adds a check inside the block, as well as a failsafe check at the end. The above commit (49658) causes a crash due to ll being calculated as 0 which leads to rr being an invalid pointer. Only adding a check for when ll is 0 just leads to bck-i-search pattern not working at all (the final hunk). Restoring the condition and adding an explicit NULL check for replstr seems to make matters work as intended. | ||||
* | 49915: Efficient dedup for unsorted completions | Mikael Magnusson | 2022-03-30 | 2 | -20/+35 |
| | |||||
* | 49893: Fix comments for UNIQCON/ALL | Mikael Magnusson | 2022-03-30 | 2 | -4/+10 |
| | |||||
* | 49853 + 49882/49883: make "${arr[*]:off}" compatible with ksh/bash | Jun-ichi Takimoto | 2022-03-29 | 1 | -3/+18 |
| | |||||
* | 49890: Avoid scanning unallocated memory in saved command line. | Peter Stephenson | 2022-03-28 | 1 | -1/+1 |
| | |||||
* | 49792: Non-interative shell input is line buffered. | Peter Stephenson | 2022-03-03 | 1 | -7/+14 |
| | |||||
* | 49783: Consistently use old job table in parameter module | Peter Stephenson | 2022-03-01 | 2 | -48/+82 |
| | |||||
* | unposted: Fix some typos and markup. | Daniel Shahaf | 2022-02-22 | 3 | -3/+6 |
| | |||||
* | security/41: Don't perform PROMPT_SUBST evaluation on %F/%K arguments | Oliver Kiddle | 2022-02-12 | 1 | -0/+10 |
| | | | | | | Mitigates CVE-2021-45444 (cherry picked from commit c187154f47697cdbf822c2f9d714d570ed4a0fd1) | ||||
* | 49694 + doc: Allow using empty STTY= to freeze tty for a single command | Mikael Magnusson | 2022-01-30 | 1 | -2/+4 |
| | | | | | Previously, doing this would just run stty with no arguments, which normally causes it to print some terminal settings to stdout. | ||||
* | 38150: fix off-by-one error in matcher spec parsing | m0viefreak | 2021-12-24 | 1 | -1/+1 |
| | |||||
* | 49658: Fix NULL reference in match code. | Peter Stephenson | 2021-12-21 | 1 | -1/+1 |
| | | | | | | A test when acquiring the replacement pattern match in the globbing code erroneously allowed the use of a NULL pointer. This appears to be an unnecessary test case added alongside other surgery back in 2008. |