1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-10 12:40:58 +02:00
Commit graph

1275 commits

Author SHA1 Message Date
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
Bart Schaefer
326e8635fe 52752: typeset -p fixes for local exports and "export -x" / "readonly -r" output. 2024-03-14 13:11:31 -07:00
Bart Schaefer
330821de01 52692: local typeset of the name of a named reference hides the reference 2024-03-05 21:13:33 -08:00
Bart Schaefer
0848b7534e 52659: Fix crash on unset-through-nameref, add regression test 2024-03-04 21:21:20 -08:00
Bart Schaefer
700f675bf0 Add missing test case from 52652 2024-03-04 21:15:29 -08:00
Bart Schaefer
610b18875a 52650 plus minor fixes: add -u for named references pointing to "upper" scope 2024-03-04 21:07:01 -08:00
midchildan
36a2d5cfa4 52641: incarg: add a backward variant and make it repeatable 2024-03-05 00:05:21 +01:00
Jun. T
145397b6dc 52635: show file name when test has crashed 2024-03-02 20:26:01 -08:00
Bart Schaefer
85172998f4 52619 (plus tests): no empty element when appending array to unset scalar 2024-02-28 20:40:26 -08:00
Bart Schaefer
4b9cd6b8bd 52583: extra check for proper scope and existence of readonly specials 2024-02-23 09:51:06 -08:00
Bart Schaefer
6b21e5c0e2 52559: revise "typeset -p" with respect to local readonly special parameters
Update doc and tests to describe handling of global readonly specials and
to account for side-effects on zsh/param/private.
2024-02-20 20:16:03 -08:00
Bart Schaefer
c2cf21c8f0 Merge branch 'master' of git://git.code.sf.net/p/zsh/code 2024-02-18 10:32:07 -08:00
Bart Schaefer
00b12da9c0 52556: regression test for unset referent (left out of last commit) 2024-02-18 10:31:21 -08:00
Stephane Chazelas
b3cad1c24c 52515: (+ tests in 52527) avoid sh errors when running shebang-less scripts with paths starting with - or + 2024-02-18 18:22:37 +00:00
midchildan
fb9a7cc5dd 52520: add new features and improvements to the "incarg" ZLE widget
- Decrement integers without defining a new widget
- Preserve the number of leading zeros
- Increment binaries, octals, and hexadecimals
- Move the cursor to the end of the incremented integer
- Create a sequence of integers across terminal panes
- Add a Vim variant
- Also add tests
2024-02-15 15:40:37 +01:00
Bart Schaefer
8801665e5b 52513: fixes and doc for using nofork substitutions with private parameters
Also fixes a crash bug with {fd}>&N redirections and private parameters
2024-02-03 12:07:14 -08:00
Oliver Kiddle
698af7bc13 52405, 52502: add empty elements to $match for optional captures that don't match 2024-01-26 07:33:38 +01:00
Bart Schaefer
1a3ebb68d6 52385: avoid "tr" in test output formatting 2024-01-25 21:58:25 -08:00
Oliver Kiddle
10c3ed20c7 52393: fix tests on Solaris by omitting -a option to diff as it is not supported there 2023-12-13 11:40:03 +01:00
Bart Schaefer
1ba0fff93c 52360: simplify and improve bad-descriptor detection in %prep section 2023-12-02 15:14:12 -08:00
Bart Schaefer
fbec213cc5 52325: Clarify doc for edge cases of named references and nofork substitution
Unposted whitespace change avoids a parse error in ${ ... } with comments.
2023-11-23 13:23:55 -08:00