Jun-ichi Takimoto
3e72a52e27
53959+54149: fix a bug when redirecting to a pattern with no match
...
when redirecting to/from a pattern (MULTIOS) and if there is no match,
issue an error even if NULL_GLOB is in effect.
2025-12-21 12:54:51 +09:00
Oliver Kiddle
f51fed9dda
54103: support > and < comparisons via the test builtin
2025-11-24 22:19:07 +01:00
Oliver Kiddle
5411128bf3
54074, 54082: add an opaque key for use in zle_highlight/region_highlight to allow mixing of colours
2025-11-17 04:32:14 +01:00
dana
f90dbf3674
53671: hist: untokenise input to :A and :P
2025-11-16 12:57:27 -06:00
Bart Schaefer
8eec2c793c
54064: avoid crash on named references to argv/ARGC, improve valid_nameref()
...
Leaves some edgecase issues unresolved (see tests).
2025-11-10 15:13:36 -08:00
Oliver Kiddle
6a691a3487
53404: terminal integration with semantic markers
2025-11-10 21:02:31 +01:00
Oliver Kiddle
3085b88a64
53379, 53380: autoload nearcolor based on truecolor detection
2025-11-10 21:02:29 +01:00
Oliver Kiddle
5b66e3614f
53377: support OSC52 paste sequence with the "* and "+ vi registers
2025-11-10 21:02:27 +01:00
Oliver Kiddle
37acbc87ad
53372, 53375: query terminal properties on ZLE startup
2025-11-10 21:02:20 +01:00
Philippe Altherr
0d76a82c77
54057: enable assignment through named reference to change type of the referent
2025-11-09 15:28:13 -08:00
Oliver Kiddle
8e27709d2a
54019: AIX support fixes
2025-11-03 20:17:00 +01:00
Bart Schaefer
005ef2c830
53676+54009: Revise 52650+51945 for assignment to global through nameref
...
Allows assignment to a global via nameref to succeed without creating a
dereference loop. Update tests for changed behavior.
2025-10-26 19:42:56 -07:00
Philippe Altherr
b66a2e2524
53798: report reference loops created when a reference goes out of scope
2025-10-26 17:31:02 -07:00
Philippe Altherr
938b3c9475
53790: corrections to reference loop detection
2025-10-26 17:21:15 -07:00
Philippe Altherr
7546c18076
53797: fix creation of undeclared target variable through reference chain
2025-10-26 17:11:32 -07:00
Philippe Altherr
78b7629361
53796: fix local reference chains and detect self-reference across local scopes
2025-10-26 17:05:44 -07:00
Philippe Altherr
e1fed5439c
53782: Src/params.c, Test/K01nameref.ztst: changes to nameref base level:
...
- avoid changing base on assignment;
- omit base level for up-scope references
- do not follow reference chains for base level of new references
2025-10-26 16:52:51 -07:00
Philippe Altherr
1e0d2b0d7e
53781: fix loading of autoload variable via a reference
2025-10-26 14:06:57 -07:00
Philippe Altherr
477c6890b0
53732: avoid tail-call exec in always block
2025-10-26 13:39:33 -07:00
Joshua Krusell
8d21e54bdb
53988: fix zparseopts segfault
2025-10-24 14:32:20 -05:00
dana
bde2b183ff
53709: tests: add misc. glob-qualifier tests
2025-06-03 02:01:35 -05:00
dana
8720885648
53662: tests: add extra namespace tests
...
relates to workers/53660
2025-05-24 09:07:55 -05:00
dana
0767fdaae3
53626: tests: make whence -s test use grep -c instead of wc -l
...
fixes broken test on platforms like macos where `wc -l` output is padded
2025-05-16 12:11:50 -05:00
Daniel Shahaf
60639c67f0
users/30257: Add a test for an ERR_RETURN bug fixed in workers/51076.
2025-05-14 16:34:19 +00: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
Daniel Shahaf
ed0c98f63f
53524 (cf. 53607): Add an XFAIL test for a 'whence -s' bug involving non-symlink arguments.
2025-05-14 14:51:51 +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
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
Peter Stephenson
7de89c9576
53529: A04redirect fix.
...
Sometimes permissions in system directories can affect the error for non-existent
files. Use the local directory instead.
2025-05-01 09:16:45 +01:00
dana
80de57d5a6
53527: remove zgetopt
...
reverts most of 84ef0c523, 0e369f37d, and 9b68cf38f
feature was not ready. may be re-added after 5.10 release
2025-04-28 16:23:29 -05:00
dana
84ef0c5238
53516: add zgetopt contrib function
2025-04-27 07:58:23 -05:00
dana
2601c19186
53515: tests: correct ztst documentation error
2025-04-27 07:47:53 -05: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
e7163e69d9
53431: fix assignment via named reference to parameters in outer scopes
2025-03-31 15:25:34 -07:00
Bart Schaefer
7a54b36fa8
53348: Revise handling of incompatible typeset options when used with -n
2025-02-12 20:03:07 -08:00
dana
98e486fb56
53297: Test/A08time: allow %nU/%nS result to be 0
2025-01-02 17:13:04 -06: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
638e09af6e
53244: rename user in test case to reduce likelihood of failure due to user existing
2024-11-23 22:29:19 +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
ec57ac0940
53103: fix spurious test failure on Solaris
2024-09-21 18:02:33 -07:00
Bart Schaefer
8ad625d90c
53088: enable `time' on builtins, assignments, and current-shell actions
2024-09-14 12:40:56 -07:00
Oliver Kiddle
c8f0174289
53087: don't produce spurious error when zpty is missing
2024-09-14 19:43:26 +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
Philippe Altherr
da733f5df6
52977: ERR_EXIT/ERR_RETURN are respected by the final command in && / || lists
2024-06-28 21:05:42 -07:00
Bart Schaefer
76019f7174
52864: Change ${|var|...} to ${{var} ...}, limit local REPLY to ${|...}
2024-04-01 22:35:33 -07:00
Bart Schaefer
25182cc2e6
52759: ${ ... } trims one trailing newline; "${ ... }" preserves that newline.
2024-03-17 14:28:28 -07:00