1309 Commits

Author SHA1 Message Date
Oliver Kiddle
e73499b372 54181, 54331: remove support for restricted shell
This is in response to a security report. There are too many potential ways
to break out of a restricted shell and more secure, modern alternatives exist.
2026-04-14 03:14:46 +02:00
dana
bfb982d682 54318: mathfunc: add isnan() and isinf(). also document NaN + Inf 2026-04-13 11:07:56 -05:00
dana
08e48ea8b6 54313: convfloat: use consistent capitalisation for NaN, Inf, and -Inf
makes `typeset -p` use the same capitalisation as arithmetic expansion
2026-04-13 11:07:56 -05:00
Jun-ichi Takimoto
9429940b7b 54285: 'let' builtin should return 2 if error occurred 2026-04-07 23:18:53 +09:00
dana
63f7b6efb6 54159: strftime: respect empty TZ
+ README update due to potential compatibility breakage
2026-04-05 12:02:47 -05:00
dana
fa571f7099 53299: zparseopts: improve accuracy of bad-option message 2026-04-05 12:02:26 -05:00
Philippe Altherr
bcae4b58e6 54048: consistently re-bind namerefs when returning from greater locallevel 2026-03-31 18:32:35 -07:00
Philippe Altherr
8edd5029de 54262: track and revert hidden references in chains across locallevel scopes 2026-03-31 18:32:26 -07:00
Philippe Altherr
d8d74ef682 54261: unset -n removes named-reference type as well as removes referent 2026-03-31 18:32:12 -07:00
Jun-ichi Takimoto
64a75431b0 54241 + 54242: use extra-verbose style in _parameters
add notes in the description of extra-verbose style in zshcompsys(1)
2026-03-24 22:52:39 +09:00
Jun-ichi Takimoto
8758234470 54185+54209: set default value of verbose style to true 2026-03-09 00:12:22 +09:00
dana
52775e448d 54203: replace "read -t" with "zselect" for "make check" with no terminal 2026-02-21 13:40:37 -08:00
Philippe Altherr
7f1dec0bae 54122: avoid warnings for valid nameref options 2026-02-16 16:05:39 -08:00
Philippe Altherr
f6bf286da7 54063: Simplifications for resolve_nameref() and setscope() 2026-02-16 15:42:04 -08:00
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