1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

users/24985: Clarify documentation of the ${(n)} and ${(-)} parameter expansion flags, and add a forward compatibility hatch to the latter.

This commit is contained in:
Daniel Shahaf 2020-07-12 11:39:29 +00:00
parent 03407c2928
commit 7dfc4f754e
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,9 @@
2020-07-12 Daniel Shahaf <d.s@daniel.shahaf.name>
* users/24985: Doc/Zsh/expn.yo: Clarify documentation of the
${(n)} and ${(-)} parameter expansion flags, and add a forward
compatibility hatch to the latter.
* 46204: Test/E01options.ztst: Fix new test case for the
theoretical case of having more than 100 files in the root
directory.

View file

@ -1092,15 +1092,18 @@ Convert all letters in the result to lower case.
item(tt(n))(
Sort decimal integers numerically; if the first differing
characters of two test strings are not digits, sorting
is lexical. Integers with more initial zeroes
are sorted before those with fewer or none. Hence the array `tt(foo1 foo02
is lexical. `tt(+)' and `tt(-)' are not treated specially; they are treated as
any other non-digit. Integers with more initial zeroes
are sorted before those with fewer or none. Hence the array `tt(foo+24 foo1 foo02
foo2 foo3 foo20 foo23)' is sorted into the order shown.
May be combined with `tt(i)' or `tt(O)'.
)
item(tt(-))(
As tt(n), but a leading minus sign indicates a negative decimal
integer. A `tt(-)' not followed by an integer does not trigger
integer. A leading minus sign not followed by an integer does not trigger
numeric sorting.
Note that `tt(+)' signs are not handled specially (this may change in the
future).
)
item(tt(o))(
Sort the resulting words in ascending order; if this appears on its