Bart Schaefer
9dcd08e585
53820: detect integer overflow when parsing history word designators.
2025-07-13 10:26:09 -07:00
Peter Stephenson
96beb5ced9
53738: Fix memory leak in command substitution.
...
This happened if the substituion had a here document but the parse failed.
2025-06-10 16:56:41 +01:00
Bart Schaefer
1a61fa3745
53713: ${ ... } should not clobber $REPLY
...
Also fix some ChangeLog email address paste errors
2025-05-31 08:10:33 -07:00
Bart Schaefer
25399e5437
unposted: fix silly bug wherein ${(!)ref} uppercased the referent name
2025-05-14 13:39:14 -07:00
Daniel Shahaf
5db0d046b6
53607: Stop printing /usr/bin/foo -> /usr/bin/foo in 'whence -s'.
...
Makes the new test PASS.
Review-by: Bart Schaefer
2025-05-14 14:53:12 +00:00
dana
a2f390701a
53588: zsystem flock: handle optargs in the same word
...
with small tweak to test, just in case
2025-05-13 22:14:09 -05:00
Bart Schaefer
b0fa403a3d
53602: "typeset -nu" always refers to at a call level above the declaration
2025-05-12 21:29:16 -07:00
Bart Schaefer
1706805d46
unposted: fix bad pointer found by valgrind
2025-05-09 17:00:33 -07:00
Bart Schaefer
abd541e18c
53568: fix additional problems with reference scoping, update documentation
...
Scope exits could miss some scope updates in named reference chains.
References declared -u behave like any other reference upon scope exit.
2025-05-09 16:38:28 -07:00
Bart Schaefer
f555e902db
53546,53557 (plus test): Fix scoping of "placeholder" named references
...
When using placeholders declared several levels earlier than assignment:
1) Searching "up" for "typeset -n -u" could find deeper locals than intended
2) Searching for a subscript reference could skip to the top level
3) Exiting a function scope could incorrectly change the reference level
2025-05-06 10:50:53 -07:00
dana
8c3c457321
53483: zparseopts -G: accept only '--' as parsing terminator
2025-04-19 18:48:31 -05:00
dana
494fcd1799
53482: zparseopts -G: always add options with optional args to array with =
2025-04-19 18:47:00 -05:00
Bart Schaefer
bacc78ec3f
53454: fix interrupt handling in savehistfile()
2025-04-15 10:03:23 -07:00
Bart Schaefer
e7163e69d9
53431: fix assignment via named reference to parameters in outer scopes
2025-03-31 15:25:34 -07:00
Oliver Kiddle
435cb1b748
53399: don't load ZLE early to set keymap
...
When zsh is run with -o vi / -o emacs, instead of loading ZLE to force
the change, only record the option state. Then when ZLE starts, the vi
option determines the default keymap.
2025-03-03 01:30:32 +01:00
Oliver Kiddle
71f35afa1c
53394: drop OSC and DCS sequences in key input
...
They are likely to be terminal query responses not keys. If they do match a
keybinding that's not affected. Also does likewise for certain CSI sequences.
2025-03-03 01:15:24 +01:00
Bart Schaefer
d315401a03
53368: ignore no-op changes to EMACS/VI options
2025-03-02 11:23:22 -08:00
Oliver Kiddle
e160cf85f0
53378: support new pipebuf resource limit on FreeBSD
...
Also add other newer limits to the documentation.
2025-02-27 16:02:02 +01:00
Bart Schaefer
8701313c61
53363: permit "typeset -n +m pattern"
...
Also fix spurious error printing the value of a read-only named reference
2025-02-15 14:29:51 -08:00
Bart Schaefer
3ce354c049
53360: domenuselect() fails if the previous completion did not generate a list
...
(fix for segfault)
2025-02-12 20:11:47 -08:00
Bart Schaefer
7a54b36fa8
53348: Revise handling of incompatible typeset options when used with -n
2025-02-12 20:03:07 -08:00
Oliver Kiddle
20990fa7e4
53337: allow nameref -p
2025-01-30 12:51:37 +01:00
Oliver Kiddle
86a0891952
53335: Remove unused dupstring_glen() function
...
Also make use of the dupstring_wlen() variant in more places to avoid a strlen()
2025-01-30 12:42:09 +01:00
Oliver Kiddle
f7b5cc431b
53332, 53334: Avoid strlen calls after sprintf
2025-01-30 12:30:40 +01:00
Oliver Kiddle
4f3d69e2a0
53329: adapt .zle.sgr for CSI sequences that use : instead of ;
2025-01-27 23:50:27 +01:00
Wu, Zhenyu
a61b105795
github #126 : Fix some typos
2025-01-27 23:39:05 +01:00
Bart Schaefer
263659acb7
53294: fix multibyte handling in "select" prompts
2025-01-03 09:18:23 -08:00
dana
d051857e03
53260: zparseopts: add options -v (argv) and -G (GNU-style parsing)
2024-12-26 10:09:31 -06:00
dana
6bb792dba8
53257: use monotonic clock where appropriate
...
update the following features to use the monotonic clock for calculating time
deltas and intervals:
* MAILCHECK parameter
* PERIOD parameter
* SECONDS parameter
* %(nS.t.f) prompt-expansion sequence
* time built-in's elapsed time and cpu % values
* zsh/zftp ZFTP_TMOUT parameter
* zsh/zprof timings
also use CLOCK_MONOTONIC_RAW instead of CLOCK_MONOTONIC on macOS
2024-12-26 10:09:25 -06:00
Oliver Kiddle
3c0f932300
53243: fix use of vi-fetch-history with a range
2024-11-23 22:31:44 +01:00
Bart Schaefer
f282ff5792
53209 + tests: do not unmetafy via string pointers into global parameter table
2024-11-05 13:50:51 -08:00
Bart Schaefer
ac1fd06d7c
53146: flags cannot be copied from an undefined function (cf. ca6f4466
)
2024-10-16 13:07:56 -07:00
Oliver Kiddle
62131ae049
53094: remove unused autoconf tests
2024-09-18 11:08:08 +02:00
Oliver Kiddle
06f423f8a9
53093: silence compiler warning when USE_LSEEK is not defined
2024-09-18 11:08:08 +02:00
Oliver Kiddle
ad4afde923
53092: silence deprecated header warning on older Linux systems
2024-09-18 11:08:03 +02:00
Bart Schaefer
8ad625d90c
53088: enable `time' on builtins, assignments, and current-shell actions
2024-09-14 12:40:56 -07:00
Oliver Kiddle
701fad5021
53085: support for BSDs in $ZSH_EXEPATH implementation
2024-09-14 19:38:23 +02:00
Oliver Kiddle
55ff6f8864
53083: handle Haiku specific resource limit for open vnode monitors
2024-09-14 19:30:30 +02:00
Oliver Kiddle
8dd271fdec
53081: remove old BeOS support code
2024-09-14 19:21:58 +02:00
Oliver Kiddle
79593399c4
53080: remove code for systems that only have the old pre-POSIX signal()
2024-09-14 19:14:40 +02:00
Clinton Bunch
6b9704e2c4
53060: silence build warnings
2024-08-31 17:22:02 +02:00
Clinton Bunch
58bda59130
53056: new zsh/random module defining an SRANDOM parameter and zrand_float() and zrand_int() math functions
2024-08-31 13:12:10 +02:00
Bart Schaefer
5977d3cdd4
unposted: fix parsing of Bang token in value side of array element assignment
2024-08-15 18:06:19 -07:00
Jun. T
b2f24ff0d2
53026: fix failure to free old value when setting new value of reference
2024-08-06 14:37:39 -07:00
Bart Schaefer
72751bfe1f
53025: fix memory leaks and pointer errors upon named reference self-reference
2024-08-05 15:59:48 -07:00
Bart Schaefer
65da467441
53023: fix memory leak of unset private parameter
2024-08-05 15:49:15 -07:00
Philippe Altherr
4616ea398a
53005: off-by-one error when resetting signals on subshell entrance
2024-08-04 19:12:32 -07:00
Peter Stephenson
0bb140f991
52999: import OLDPWD from environment if set
2024-07-28 20:33:07 +01:00
Jun-ichi Takimoto
2a54de1675
52985: avoid adding original param to restorelist
2024-07-04 11:51:09 +09:00
Philippe Altherr
da733f5df6
52977: ERR_EXIT/ERR_RETURN are respected by the final command in && / || lists
2024-06-28 21:05:42 -07:00