Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 49544: only tie watch/WATCH if both come from the module | Oliver Kiddle | 2021-11-07 | 1 | -7/+11 | |
| | ||||||
* | 49534, 49539: separate watch/log functionality out into a module | Oliver Kiddle | 2021-11-02 | 7 | -42/+117 | |
| | ||||||
* | 49535: fix completion for ${<TAB> and ${(a)<TAB> | Jun-ichi Takimoto | 2021-11-01 | 1 | -11/+3 | |
| | ||||||
* | 49533: add null check for preprompt functions list that could occur ↵ | Oliver Kiddle | 2021-10-30 | 1 | -0/+3 | |
| | | | | following an error when loading a module | |||||
* | 49528: allow multiple -D options to compadd | Oliver Kiddle | 2021-10-30 | 3 | -22/+60 | |
| | ||||||
* | 49516: bail out early from matching control if command line content is too ↵ | Oliver Kiddle | 2021-10-26 | 1 | -2/+3 | |
| | | | | short for the coanchor | |||||
* | 49499 based on 49496 by Jun T.: fixes to option -A of _arguments | Oliver Kiddle | 2021-10-23 | 1 | -8/+19 | |
| | ||||||
* | 49433: Don't assume EPROG references are bounded by function depth. | Peter Stephenson | 2021-10-05 | 1 | -4/+0 | |
| | | | | We use references for efficient function copy, so there is no useful limit any more. | |||||
* | 49456: clean up detection of private params in nested scopes, update doc | Bart Schaefer | 2021-10-04 | 2 | -5/+12 | |
| | ||||||
* | 49450: don't display explanation with compadd -x if any of -D, -A or -O are ↵ | Oliver Kiddle | 2021-09-28 | 1 | -1/+1 | |
| | | | | also used | |||||
* | 49422: improve support of --disable-dynamic-nss | Jun-ichi Takimoto | 2021-09-22 | 5 | -14/+29 | |
| | | | | see also 49392 (Vincent) and 49412 (Axel) | |||||
* | 49353: Fix comments in sourced file. | Peter Stephenson | 2021-09-09 | 1 | -1/+1 | |
| | | | | | | | | If the file was sourced from an interactive shell with INTERACTIVE_COMMENTS not set, comments were not parsed. Note there is a remaining edge case where the sourced file is in fact entered at the comment line. | |||||
* | 49387: suffix highlight with "compadd -R" | Bart Schaefer | 2021-09-08 | 1 | -6/+3 | |
| | ||||||
* | unposted: add/remove UNUSED() for some function parameters | Jun-ichi Takimoto | 2021-09-08 | 5 | -5/+5 | |
| | ||||||
* | unposted: add 'static' to shinsavestack | Jun-ichi Takimoto | 2021-09-08 | 1 | -1/+1 | |
| | ||||||
* | 49377: fix segfault by 'bindkey -d' with reordered keymapnamtab | Jun-ichi Takimoto | 2021-09-08 | 1 | -1/+21 | |
| | ||||||
* | 49292: Src/Zle/complist.c: turn off colors before clearing to end of line | Marlon Richert | 2021-09-06 | 1 | -14/+19 | |
| | ||||||
* | 49378: skip check for collision of aliases and functions when NO_EXEC | Marlon Richert | 2021-09-06 | 1 | -1/+1 | |
| | ||||||
* | 49282: set $0 correctly when calling functions from hooks | Bart Schaefer | 2021-09-06 | 1 | -2/+12 | |
| | ||||||
* | 49266: fix segfault on metacharacters in long job texts | Bart Schaefer | 2021-09-06 | 1 | -0/+2 | |
| | ||||||
* | unposted (cf. 49202 and 49217): insertlastword ignores blank/missing history ↵ | Bart Schaefer | 2021-09-06 | 1 | -2/+7 | |
| | | | | entries when repeating | |||||
* | 49196: gdbm keys not present in the database appear unset in tied hashes | Bart Schaefer | 2021-09-06 | 1 | -0/+2 | |
| | ||||||
* | users/26982, subset not already integrated: use standard #include format | Peter A. Castro | 2021-08-28 | 1 | -2/+2 | |
| | ||||||
* | 49290: Replace stdio for buffered shell input. | Peter Stephenson | 2021-08-27 | 2 | -19/+117 | |
| | | | | | | | The previous method allowed memory management to interact with signal handlers, causing occasional crashes on some system. Instead, use a simple pre-allocated buffer and raw system calls. | |||||
* | 49307 with doc update: POSIX_TRAPS fix. | Peter Stephenson | 2021-08-26 | 1 | -1/+2 | |
| | | | | | With POSIX_TRAPS set, an ignored signal stays ignored when entering a subshell. | |||||
* | 49297 (quoting amended): error message in files module. | Peter Stephenson | 2021-08-24 | 1 | -1/+7 | |
| | | | | If ENONENT it could be the other argument that doesn't exist, so check. | |||||
* | 49269: Fix "[ ! -o ]". | Peter Stephenson | 2021-08-10 | 1 | -1/+1 | |
| | | | | | This should detect "-o" as non-empty string; "-a" was alrady working. Update the test. | |||||
* | 49029: Prevent shell from sending duplicate signals with MONITOR | Erik Paulson | 2021-07-23 | 1 | -0/+1 | |
| | ||||||
* | 49182: Turn off correction inside command substition. | Peter Stephenson | 2021-07-23 | 2 | -0/+8 | |
| | | | | | In "A=$(PWD)" we dont't have the information to correct at the level of the PWD subcommand, so don't try to do it as this causes a crash. | |||||
* | 49166: fix coredump in ${name:offset:length} with ill-formatted length | Jun-ichi Takimoto | 2021-07-19 | 1 | -5/+7 | |
| | ||||||
* | 49102: Ignore dynamic directory name failure if NO_EXEC | Peter Stephenson | 2021-06-28 | 1 | -1/+1 | |
| | ||||||
* | 49069: literal interpretation of subscripts for unset of array/hash elements | Bart Schaefer | 2021-06-13 | 1 | -4/+2 | |
| | ||||||
* | 48954: avoid crash in reverse-menu-complete from menuselect without 'menu' ↵ | Oliver Kiddle | 2021-06-03 | 1 | -3/+2 | |
| | | | | in $compstate[insert] | |||||
* | 48857: declare "volatile" all globals that may be modified by signal handlers | Bart Schaefer | 2021-05-16 | 6 | -24/+26 | |
| | ||||||
* | 33465: use prctl() for "jobs -Z" where available | Han Pingtian | 2021-05-15 | 1 | -0/+7 | |
| | | | | Bart apologizes for waiting 7 years to apply this change. | |||||
* | 48723: locale-safe recognition of "Inf" and "NaN" constants in math | Vincent Lefevre | 2021-05-15 | 1 | -2/+6 | |
| | ||||||
* | users/26742: break out of surrounding shell loops when exit is called from ↵ | Peter Stephenson | 2021-05-15 | 1 | -1/+4 | |
| | | | | an exit hook | |||||
* | users/26736: avoid infinite loop in getbyte from exit hook | Bart Schaefer | 2021-05-15 | 1 | -0/+4 | |
| | ||||||
* | 48790: COMPLETE_IN_WORD inside brace-param | Bart Schaefer | 2021-05-15 | 1 | -4/+24 | |
| | ||||||
* | 48787: Fix command status after failed if | Peter Stephenson | 2021-05-06 | 1 | -1/+1 | |
| | | | | | | | If "if" had a hard error in the condition, and there was no else clause, the command status was incorrectly cleared to zero. Add test. | |||||
* | 48614: getopts: Calculate OPTIND according to POSIX_BUILTINS | dana | 2021-05-03 | 1 | -0/+10 | |
| | ||||||
* | 47704: POSIX export and readonly ignore "-p" when parameter names also appear | Bart Schaefer | 2021-04-18 | 2 | -2/+10 | |
| | ||||||
* | 48560: add TYPESET_TO_UNSET option to remove initialization of parameters | Bart Schaefer | 2021-04-18 | 5 | -7/+36 | |
| | | | | | | | | | | Changes typeset such that ${newparam-notset} yields "notset" and "typeset -p newparam" does not show an assignment to the parameter. This is similar to the default behavior of bash and ksh, with minor differences in typeset output. Also add tests for some POSIX incompatibilities plus minor changes for test harness robustness. | |||||
* | 48439: remove macros that became unnecessary by df48cc8 | Jun-ichi Takimoto | 2021-04-12 | 1 | -26/+17 | |
| | ||||||
* | 48504: use SEEK_ macros in fseek() calls | Oliver Kiddle | 2021-04-11 | 3 | -6/+6 | |
| | ||||||
* | 45396: readhistfile: avoid thousands of lseek(2) syscalls via ftell() | Michael Stapelberg | 2021-04-11 | 1 | -6/+10 | |
| | ||||||
* | 47794: exec: run final pipeline command in a subshell in sh mode | brian m. carlson | 2021-04-10 | 1 | -4/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zsh typically runs the final command in a pipeline in the main shell instead of a subshell. However, POSIX specifies that all commands in a pipeline run in a subshell, but permits zsh's behavior as an extension. The default /bin/sh implementations on various Linux distros and the BSDs always use a subshell for all components of a pipeline. Since zsh may be used as /bin/sh in some cases (such as macOS Catalina), it makes sense to have the common sh behavior when emulating sh, so do that by checking for being the final item of a multi-item pipeline and creating a subshell in that case. From the comment above execpline(), we know the following: last1 is a flag that this command is the last command in a shell that is about to exit, so we can exec instead of forking. It gets passed all the way down to execcmd() which actually makes the decision. A 0 is always passed if the command is not the last in the pipeline. […] If last1 is zero but the command is at the end of a pipeline, we pass 2 down to execcmd(). So there are three cases to consider in this code: • last1 is 0, which means we are not at the end of a pipeline, in which case we should not change behavior. • last1 is 1, which means we are effectively running in a subshell, because nothing that happens due to the exec is going to affect the actual shell, since it will have been replaced. So there is nothing to do here. • last1 is 2, which means our command is at the end of the pipeline, so in sh mode we should create a subshell by forking. input is nonzero if the input to this process is a pipe that we've opened. At the end of a multi-stage pipeline, it will necessarily be nonzero. Note that several of the tests may appear bizarre, since most developers do not place useless variable assignments directly at the end of a pipeline. However, as the function tests demonstrate, there are cases where assignments may occur when a shell function is used at the end of a command. The remaining assignment tests simply test additional cases, such as the use of local, that would otherwise be untested. | |||||
* | 47913: implement CASE_PATHS option to make NO_CASE_GLOB more sensible | Bart Schaefer | 2021-04-10 | 3 | -1/+10 | |
| | ||||||
* | 48432 and enable test: fix quotiing of zstyle -L for zstyle -e | Peter Stephenson | 2021-04-09 | 1 | -1/+2 | |
| | ||||||
* | 47785: remove deprecated autoconf functions | Felipe Contreras | 2021-04-09 | 3 | -37/+6 | |
| | | | | STDC_HEADERS and TIME_WITH_SYS_TIME are deprecated. |