1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-05 11:01:13 +02:00
Commit graph

255 commits

Author SHA1 Message Date
dana
b35c4f956c 53808: docs: clarify Yn globqual explanation 2025-08-16 16:25:13 -05:00
Jun-ichi Takimoto
33aafecc7e 53821: add missing manpage name in cross reference
and many small improvements. See comments in zman.yo for the usage
of new yodl macros for cross reference.
2025-07-18 23:26:56 +09:00
dana
a9bde1b8d1 53709: docs: clarify glob-qualifier syntax 2025-06-03 02:01:35 -05:00
Mikael Magnusson
bfb8ec65a6 53660: Clarify namespaces starting with a . 2025-05-22 04:03:18 +02: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
49c6978dbb 52865: Documentation update for 52864 2024-04-01 22:38:27 -07:00
Bart Schaefer
25182cc2e6 52759: ${ ... } trims one trailing newline; "${ ... }" preserves that newline. 2024-03-17 14:28:28 -07: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
Bart Schaefer
18400b68e4 52510: document how ${ ... } et al. affect use of "private"; add index entries 2024-01-28 18:22:36 -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
Bart Schaefer
e4e9afe373 52180: clarify array behavior of ${|var|...} and REPLY 2023-09-23 09:30:55 -05:00
Atte Peltomäki
d92b1a3547 51980: Add glob qualifier grouping operator to completion
Also improve wording in documentation to make glob qualifier grouping
easier to find by explicit use of terms 'logical OR' and 'logical AND'.
2023-09-20 20:17:09 +02:00
Bart Schaefer
3aaef16569 52154, 52155: Implement, document, and test non-forking command substitution.
Comprises workers/51957, 51985, 51987, 51988, 51993, 52131, 52139, plus
fixes for return values, parse errors, and trailing newlines (which were
incorrectly removed) in ${ ... }
2023-09-16 17:34:39 -07:00
Bart Schaefer
baa19d2a85 51945: assorted documentation improvements, bug fixes, and new test
1) Document the behavior of "typeset -n existing_var" (via Jun T. comment)
2) Prohibit "typeset -nm pattern" because, well, it's insane.  Add test.
3) Improve doc for ${(!)ref} including ${{t!)ref} (Jun T.)
4) Fix doc for how-to unset of a named ref (Jun T.)
5) Allow "typeset +r -n ref" and "typeset +r +n ref" (Jun T.)
6) Fix "typeset -r -n ref=param" to create readonly references
7) Avoid accidental removal of PM_UNSET flag (Jun T.) and update test
8) Fix "typeset -gn ref=value" and add a test for it
9) Add tests for read-only reference behavior
10) Fix infinite recursion when resolving scope of an unset local
named reference, add test.
2023-07-26 20:15:21 -07:00
Peter Stephenson
78102120b9 51816: add :S history modifier with pattern match 2023-06-06 09:16:46 +01:00
Marlon Richert
bb441f77a7 51758: Make dynamic dir completion easier to implement 2023-05-21 03:05:20 +02:00
Bart Schaefer
b17431e6dd 51511: Documentation for namespaces 2023-03-06 20:04:31 -08:00
Bart Schaefer
acb15e3cc9 51403: Tests and documentation for 51402, clean up some other tests. 2023-02-12 11:57:31 -08:00
Bart Schaefer
e807ac1157 51375: Clarify documentation, fix typos, add indexing. 2023-02-12 11:32:11 -08:00
Bart Schaefer
102145b048 51362: Begin documentation for named references. 2023-02-12 11:25:42 -08:00
Peter Stephenson
76d095df9d 51306: error message in ${unset?error} should be expanded 2023-02-02 10:12:17 +00:00
Bart Schaefer
88ccf2be1e 51337: parameter attributes cross-reference typeset equivalents (or lack thereof) 2023-01-31 17:08:57 -08:00
Bart Schaefer
fc1ae21fda unposted: Add details about ${(*)...} expansion 2022-04-30 12:29:52 -07:00
Peter Stephenson
41eb200d66 27639: clarify that ${(#)...} deals with character codes. 2022-03-31 13:57:56 +01:00
Bart Schaefer
87d276346f 49844: Fix node reference errors from 49446 and 49448. 2022-03-13 21:07:14 -07:00
Peter Stephenson
865baf7a25 49672: document "tied" in output from ${(t)...} 2022-02-22 10:00:14 +00:00
Daniel Shahaf
ff1f7769ee 49446: docs: Add texinode()s, so the next commit can link directly to a subsection. 2021-11-26 08:38:56 +00:00
Daniel Shahaf
94563d5ad1 49445: docs: Clean up some subsection references. 2021-11-26 08:38:39 +00:00
ivan tkachenko
99d915330a 49440: Make double-flag parameter expansion syntax more discoverable in docs 2021-09-29 00:09:25 +02:00
ivan tkachenko
02f75cf386 49435: Remove trailing whitespaces in expn.yo 2021-09-29 00:02:49 +02:00
dana
78cf455871 unposted: Improve documentation and add regression test for workers/47745 2021-03-23 00:26:21 -05:00
Bart Schaefer
b8ec0ddba5 unposted: Add cindex entries for some subsections 2021-02-05 13:50:58 -08:00
Bart Schaefer
63b6398b70 47364: Enable extendedglob in pattern with ${(*)name/pattern/replacement}
Mikael Magnusson: 47382: Completion for 47364
2020-09-13 16:19:52 -07:00
Daniel Shahaf
cdafe31e05 47313: docs: Document explicitly that the :P modifier returns a symlink-less path. 2020-08-16 13:17:10 +00:00
Daniel Shahaf
7dfc4f754e users/24985: Clarify documentation of the ${(n)} and ${(-)} parameter expansion flags, and add a forward compatibility hatch to the latter. 2020-07-12 11:39:34 +00:00
Daniel Shahaf
b53f465481 unposted (cf. users/24972, users/24978): Use an ASCII hyphen/minus rather than a dash. 2020-07-03 22:17:59 +00:00
Peter Stephenson
4e0058afc5 users/24971: ${(-)var} sorts on signed integers 2020-07-03 21:05:46 +01:00
Daniel Shahaf
f636cde7b5 46132: docs: Use an itemized list in the documentation of the *(o) glob qualifier.
This should be easier to read, both as a tutorial and as a reference.
2020-06-28 13:01:20 +00:00
Daniel Shahaf
4e3d08fea8 unposted: docs: Fix some markup and typos. 2020-06-26 18:25:51 +00:00
Peter Stephenson
28277a84dd 45684: Document - glob qualifier in error cases 2020-04-15 21:33:48 +01:00
Daniel Shahaf
68d2a1bc22 unposted: ${(Z)}: Convert documentation to a description block. 2020-03-20 02:28:11 +00:00
Daniel Shahaf
c7bc62aa06 45287: zshexpn: Describe parameter elision and add some introductory prose 2020-01-15 22:35:09 +00:00
Stephane Chazelas
da19b67388 45183: Improve documentation examples 2020-01-01 22:02:48 -06:00
Daniel Shahaf
f3d18c3fb5 45160: zshexpn: Expand documentation of (S) 2019-12-31 17:22:10 +00:00
Sebastian Gniazdowski
408e75b903 45150 + 45152: zshexpn: Use a more minimal example in the documentation of (#b). 2019-12-28 21:11:47 +00:00
Martijn Dekker
bcde790c88 44981: Fix some typos in the documentation. 2019-12-04 21:31:17 +00:00
Peter Stephenson
b8dc5a7f6d 44435: Handling digita arguments for :h and :t.
Pick number of leading or trailing path components to substitute.
Active in history, brace parameters, glob qualifiers.

Add tests for all three environments.
2019-06-20 11:13:05 +01:00
Peter Stephenson
7292c063e8 43620: More care documenting command substitution including $(<...) 2018-11-14 14:22:10 +00:00
Stephane Chazelas
5ac1c6f555 42790: make [[:blank:]] match non-ASCII blanks 2018-05-17 23:42:27 +02:00
Barton E. Schaefer
254d8ed8cb unposted: Follow-up to previous: Clarify that ${histchars[1]} may be backslash-escaped even when it isn't '!'. 2018-01-13 18:55:34 +00:00