1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-21 19:31:50 +02:00
Commit Graph

1196 Commits

Author SHA1 Message Date
Bart Schaefer
3e55a135c1 51374: Expose named references in $parameters, fix substitution error. 2023-02-12 11:29:10 -08:00
Bart Schaefer
143e153259 51361: Tests for 51360. 2023-02-12 11:23:06 -08:00
Oliver Kiddle
6502d05897 51320, 51383: fixes to prevent later reappearance of old attributes
Also associated test updates and a test fix for TERM=dumb.
2023-02-09 00:10:19 +01:00
Peter Stephenson
d6b027c3c1 51350: ${(S)...//#%...} didn't match the whole string 2023-02-06 14:16:17 +00:00
Peter Stephenson
76d095df9d 51306: error message in ${unset?error} should be expanded 2023-02-02 10:12:17 +00:00
Peter Stephenson
21baad1037 51307: Improve error on attempt to define function from aliased name 2023-02-02 10:09:21 +00:00
Daniel Shahaf
096e72ce78 unposted (cribbed from users/28784 by Roman): Add XFail tests for substituting a single-quoting backslash. 2023-01-27 18:42:42 +00:00
Peter Stephenson
03292bceec 51278: make (i) subscript flag for zero-length string consistent 2023-01-16 11:10:02 +00:00
Oliver Kiddle
857bc4343b 51297: update expected test results to match more optimised escape sequences with recent changes 2023-01-11 18:41:10 +01:00
Oliver Kiddle
667ead3a64 51258, 51272: refactor handling of terminal attributes, removing OFF flags in zattr 2023-01-10 20:53:17 +01:00
Oliver Kiddle
35a2f155c3 51214: handle read -d and a delimiter that can't be decoded into a character
Terminate input at the raw byte value of the delimiter.
Also document and test the use of an empty string as a way to specify
NUL as the delimiter.
2022-12-17 00:37:19 +01:00
Jun-ichi Takimoto
2701ab161d 51207: fix for read -d when the delimiter is a byte >= 0x80 2022-12-17 00:35:36 +01:00
Oliver Kiddle
7fb6c133bf 51215: consume whole CSI sequences from the input
This affects CSI sequences that aren't explicitly bound but arrive
within the usual KEYTIMEOUT time limits. A single undefined-key widget
is run instead of unintended bindings for Escape and other characters in
the sequence.
2022-12-16 23:23:53 +01:00
Peter Stephenson
67d4bf5bb9 51134: ! return doesn't change the return status 2022-12-12 10:30:13 +00:00
Philippe Altherr
f253ea6b9d 51076: fix ERR_EXIT when used with "eval" or "source"; documentary comments 2022-12-03 21:14:26 -08:00
Philippe Altherr
259f1e944b 51071: fix ERR_RETURN for functions in conditional statements 2022-12-03 21:03:36 -08:00
Philippe Altherr
dd3ba3d599 51001: fix for ERR_EXIT following shell function; update tests 2022-12-03 20:44:10 -08:00
Philippe Altherr
d47b8480f0 51001: fix for ERR_EXIT with pipeline negation ("!"); update tests 2022-12-03 20:42:13 -08:00
Philippe Altherr
fda6fd9513 51001: fix for ERR_EXIT with "always" blocks; update tests 2022-12-03 20:35:58 -08:00
Philippe Altherr
23dc19f005 51001: Reverts 8839e969b, most of 1ba8714a, and d873ed60.
Also correct ChangeLog
2022-12-03 20:31:42 -08:00
Jun-ichi Takimoto
1be52186b4 51079: metafy sep in array subscript flag (s:sep:)
this enable sep to contain \0 etc.
2022-12-02 19:32:11 +09:00
Daniel Shahaf
291940bae6 unposted (cf. 51016): Add a test case for underscore-followed-by-digits in math context. 2022-11-23 14:22:02 +00:00
Bart Schaefer
1ba8714a7a 50928: fix tests for 50897, mention behavior change in NEWS 2022-11-09 21:37:56 -08:00
Peter Stephenson
298919f43a users/28338: command substitution with alias edge case.
See added regression test.
2022-11-08 14:12:01 +00:00
Jun-ichi Takimoto
33938ad489 50668: treat 8bit chars correctly when multibyte is unset
The problem was found in character range, but may have existed in other
occasions
2022-09-27 15:20:24 +09:00
Jun-ichi Takimoto
1e4c7bcae5 50662: unset LC_* for all the tests 2022-09-26 11:09:22 +09:00
Jun-ichi Takimoto
1b421e4978 50658 + test: Enable to switch between C/UTF-8 locales in PCRE 2022-09-26 10:52:50 +09:00
Jun-ichi Takimoto
4fc5dc0292 50629: do not use egrep in tests 2022-09-15 18:56:20 +09:00
Jun-ichi Takimoto
c36068357b 50342: fix test added by 50306 2022-06-09 15:08:39 +09:00
Peter Stephenson
b26b6b3fe0 Tweaks to MULTI_FUNC_DEF
Output multiple function definitions using "function" form.

Note exceptions to errors with NO_MULTI_FUNC_DEF
2022-06-07 10:02:14 +01:00
Jun-ichi Takimoto
22b1a91c2a 50306: fix wait for child that was stopped/continued
do not call addbgstatus() when child is stopped/continued
2022-06-03 19:32:56 +09:00
Bart Schaefer
23dab58b8e Fix problems with tests for 50126 and 50150. 2022-05-02 20:31:47 -07:00
Bart Schaefer
8fac1b7c62 50160: Regression tests for 50126, 50136, and 50149 2022-05-01 12:17:33 -07:00
Daniel Shahaf
f80f880c4b 50157: Tests for 50150 2022-05-01 12:13:08 -07:00
Bart Schaefer
cc264fb58b 50159: Tests for sysread, including 50101 regression 2022-05-01 11:56:28 -07:00
Jun-ichi Takimoto
6dbaff7a80 50089: unset LC_* for multibyte tests in X03zlebindkey 2022-04-26 19:52:12 +09:00
Bart Schaefer
af634c3acd unposted (see 50072): check exit status in exit-from-trap test 2022-04-17 19:19:05 -07:00
Bart Schaefer
f5c2f73301 50069: ChangeLog and test description for 50068 2022-04-14 16:39:34 -07:00
Bart Schaefer
d24d7242fe 50068: 'exit' in trap causes calling function to return 2022-04-14 16:31:50 -07:00
Jun-ichi Takimoto
0ad3b11a13 50052: do nothing when skipping test V14system 2022-04-14 10:30:06 +09:00
Jun-ichi Takimoto
c19f1313e3 50046: ztst.zsh: export LANG to child zsh 2022-04-14 10:19:57 +09:00
Jun-ichi Takimoto
06e5ec914f 50013: skip %test if a chunk in %prep fails
Only %test is skipped if a chunk in %prep returns nonzero. Both %test
and %clean are skipped if ZTST_unimplemented is set in a chunk of %prep.
ZTST_cleanup is run in both cases.
2022-04-12 16:56:18 +09:00
Jun-ichi Takimoto
3622551e02 49996 (Peter) + 50012: add ZTST_continue 2022-04-12 16:30:40 +09:00
Bart Schaefer
f4fb3e7f04 50043: avoid spurious test failures when "make check" as root 2022-04-11 15:45:42 -07:00
Peter Stephenson
98e4634086 49906 (Bart), 49911: Fixes to querying jobs in subshell.
Don't attempt to query invalid job off end of table, resulting in
crashes from $jobtstates.

If background task started in subshell, look at tatsks within subshell
instead of main shell.  Document and add test.
2022-03-30 09:28:43 +01:00
Mikael Magnusson
f11227f78d 49813: Add missing test 2022-03-30 10:01:03 +02:00
Jun-ichi Takimoto
596b8e3fae 49910: move multibyte-related f-flagged test from E03 to D07
POSIX requires printf should calculate width/precision in %s conversion
in bytes (not in characters) even in multibyte locale
2022-03-30 10:40:34 +09:00
Jun-ichi Takimoto
6617f19234 49908: reset LC_CTYPE to C during tests
and do not export MODULE_PATH since child zsh will not import it
2022-03-30 09:42:57 +09:00
Jun-ichi Takimoto
8154ddc62d 49853 + 49882/49883: make "${arr[*]:off}" compatible with ksh/bash 2022-03-29 11:09:36 +09:00
Jun-ichi Takimoto
ee1d622042 49802 (+49804): pass MODULE_PATH to zsh started in test W03 2022-03-06 13:29:31 +09:00