Oliver Kiddle
c3ea1e5d52
security/41: Don't perform PROMPT_SUBST evaluation on %F/%K arguments
...
Mitigates CVE-2021-45444
(cherry picked from commit c187154f47
)
2022-02-12 10:29:55 -06:00
Mikael Magnusson
8bf0f0cf45
49694 + doc: Allow using empty STTY= to freeze tty for a single command
...
Previously, doing this would just run stty with no arguments, which
normally causes it to print some terminal settings to stdout.
2022-01-30 18:14:54 +01:00
m0viefreak
d82604843b
38150: fix off-by-one error in matcher spec parsing
2021-12-24 13:09:25 -08:00
Peter Stephenson
7f240e6aa9
49658: Fix NULL reference in match code.
...
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.
2021-12-21 10:31:26 +00:00
Oliver Kiddle
6b763233b2
49653: fix array indexing issue introduced with 49518 due to using decimal rather than hex 20
...
Also avoid comparing the current word against all options when the word
doesn't start with - or +.
2021-12-16 14:27:59 +01:00
Oliver Kiddle
7cb980b536
49518: fix exclusions for mixed - and + stacked options
2021-12-14 12:30:55 +01:00
Oliver Kiddle
91b7baf259
49646: allow colors in WATCHFMT with %F/%K
2021-12-13 21:06:57 +01:00
Oliver Kiddle
ba225155e4
49612: avoid startup error with clashing non-local module parameter name
2021-11-30 18:36:57 +01:00
Oliver Kiddle
b3519a9603
49611 based on 49590 (Martijn Dekker): disable Inf and NaN in math expressions for sh emulation
2021-11-30 18:27:53 +01:00
Oliver Kiddle
07c77dad50
49606: remove old NIS-specific code for retrieving user data
2021-11-28 20:55:02 +01:00
Oliver Kiddle
926a1a7296
49602: only set LOGCHECK from the watch module
2021-11-28 20:51:41 +01:00
Oliver Kiddle
78958c08bf
49601: don't create ambiguous history file entries for lines ending with a backslash
2021-11-28 20:49:30 +01:00
Jun-ichi Takimoto
138f5bf144
49586: fix :a and :A modifiers (with PWD="/") on Cygwin
2021-11-22 18:21:29 +09:00
Jun-ichi Takimoto
a361b88717
49563: fix build problem of watch module on Cygwin
2021-11-15 10:00:12 +09:00
Dimitris Apostolou
356dcb20ce
github #82 : Fix typos
2021-11-12 23:54:34 +01:00
Oliver Kiddle
dfb7ac94bb
49561: add zformat -F option, similar to -f but ternary expressions check for existence instead of doing math evaluation
2021-11-12 20:33:52 +01:00
Oliver Kiddle
631576de0f
49544: only tie watch/WATCH if both come from the module
2021-11-07 12:55:27 +01:00
Oliver Kiddle
271cfc685b
49534, 49539: separate watch/log functionality out into a module
2021-11-02 21:41:53 +01:00
Jun-ichi Takimoto
b067ab08d6
49535: fix completion for ${<TAB> and ${(a)<TAB>
2021-11-01 23:33:57 +09:00
Oliver Kiddle
68c8c60eaa
49533: add null check for preprompt functions list that could occur following an error when loading a module
2021-10-30 23:35:53 +02:00
Oliver Kiddle
632fee7cdf
49528: allow multiple -D options to compadd
2021-10-30 23:35:04 +02:00
Oliver Kiddle
8764cba90b
49516: bail out early from matching control if command line content is too short for the coanchor
2021-10-26 18:25:38 +02:00
Oliver Kiddle
e40938c128
49499 based on 49496 by Jun T.: fixes to option -A of _arguments
2021-10-23 18:21:24 +02:00
Peter Stephenson
0b3b259794
49433: Don't assume EPROG references are bounded by function depth.
...
We use references for efficient function copy, so there is no useful limit any more.
2021-10-05 16:45:55 +01:00
Bart Schaefer
fa4c88ca25
49456: clean up detection of private params in nested scopes, update doc
2021-10-04 09:02:27 -07:00
Oliver Kiddle
0a8d5cdbc8
49450: don't display explanation with compadd -x if any of -D, -A or -O are also used
2021-09-28 23:40:38 +02:00
Jun-ichi Takimoto
dd51ffa5b4
49422: improve support of --disable-dynamic-nss
...
see also 49392 (Vincent) and 49412 (Axel)
2021-09-22 13:36:57 +09:00
Peter Stephenson
db46c9cd58
49353: Fix comments in sourced file.
...
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.
2021-09-09 20:05:39 +01:00
Bart Schaefer
c4d07b3ec0
49387: suffix highlight with "compadd -R"
2021-09-08 16:01:12 -07:00
Jun-ichi Takimoto
2b81d4be32
unposted: add/remove UNUSED() for some function parameters
2021-09-08 11:58:29 +09:00
Jun-ichi Takimoto
309d899507
unposted: add 'static' to shinsavestack
2021-09-08 10:18:51 +09:00
Jun-ichi Takimoto
2a7945a900
49377: fix segfault by 'bindkey -d' with reordered keymapnamtab
2021-09-08 09:51:43 +09:00
Marlon Richert
8ffcdc4824
49292: Src/Zle/complist.c: turn off colors before clearing to end of line
2021-09-06 14:22:58 -07:00
Marlon Richert
a675d058db
49378: skip check for collision of aliases and functions when NO_EXEC
2021-09-06 14:16:18 -07:00
Bart Schaefer
988688d23d
49282: set $0 correctly when calling functions from hooks
2021-09-06 14:02:20 -07:00
Bart Schaefer
d165d408a0
49266: fix segfault on metacharacters in long job texts
2021-09-06 13:55:44 -07:00
Bart Schaefer
35c87f0b3b
unposted (cf. 49202 and 49217): insertlastword ignores blank/missing history entries when repeating
2021-09-06 13:33:40 -07:00
Bart Schaefer
7000b04e76
49196: gdbm keys not present in the database appear unset in tied hashes
2021-09-06 13:27:01 -07:00
Peter A. Castro
e872a7cec9
users/26982, subset not already integrated: use standard #include format
2021-08-28 21:38:23 +01:00
Peter Stephenson
e5cd2dd980
49290: Replace stdio for buffered shell input.
...
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.
2021-08-27 09:36:06 +01:00
Peter Stephenson
0a80579ed1
49307 with doc update: POSIX_TRAPS fix.
...
With POSIX_TRAPS set, an ignored signal stays ignored when entering
a subshell.
2021-08-26 09:46:39 +01:00
Peter Stephenson
4a9437317f
49297 (quoting amended): error message in files module.
...
If ENONENT it could be the other argument that doesn't exist, so check.
2021-08-24 19:21:53 +01:00
Peter Stephenson
daa208e907
49269: Fix "[ ! -o ]".
...
This should detect "-o" as non-empty string; "-a" was alrady working.
Update the test.
2021-08-10 09:19:32 +01:00
Erik Paulson
f8ec33c453
49029: Prevent shell from sending duplicate signals with MONITOR
2021-07-23 21:08:13 +01:00
Peter Stephenson
50dc7f2913
49182: Turn off correction inside command substition.
...
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.
2021-07-23 20:27:38 +01:00
Jun-ichi Takimoto
9b3a292410
49166: fix coredump in ${name:offset:length} with ill-formatted length
2021-07-19 09:13:03 +09:00
Peter Stephenson
d293c12de6
49102: Ignore dynamic directory name failure if NO_EXEC
2021-06-28 15:42:01 +01:00
Bart Schaefer
5b4a1626c2
49069: literal interpretation of subscripts for unset of array/hash elements
2021-06-13 16:30:06 -07:00
Oliver Kiddle
978c4907b6
48954: avoid crash in reverse-menu-complete from menuselect without 'menu' in $compstate[insert]
2021-06-03 00:22:37 +02:00
Bart Schaefer
cf5c4828d1
48857: declare "volatile" all globals that may be modified by signal handlers
2021-05-16 19:51:11 -07:00