summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-07-06 13:10:43 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-07-06 13:10:43 +0000
commitccc2e1bd890ea23c99dda07efdbfe7f3f9a36343 (patch)
treeecc48bc21d27f93e4f51c2addc597dd554f8c321 /Doc/Zsh
parente8458f44c4f9377ece69ac60a54e81f8b81ac4e8 (diff)
downloadzsh-ccc2e1bd890ea23c99dda07efdbfe7f3f9a36343.tar.gz
zsh-ccc2e1bd890ea23c99dda07efdbfe7f3f9a36343.tar.xz
zsh-ccc2e1bd890ea23c99dda07efdbfe7f3f9a36343.zip
23660: fix numerical sorting of parameters + tests + documentation
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/expn.yo11
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index b194febb0..c3c6d5baf 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -764,13 +764,12 @@ item(tt(L))(
 Convert all letters in the result to lower case.
 )
 item(tt(n))(
-Sort decimal numbers numerically; if the first differing
+Sort decimal integers numerically; if the first differing
 characters of two test strings are not digits, sorting
-is lexical.   Numbers with initial zeroes
-are sorted before those without.  Hence the array `tt(foo1 foo02
-foo2 foo3 foo20 foo23)' is sorted into the order shown.  Trailing
-non-digits are not sorted; the order of `tt(2foo)' and `tt(2bar)'
-is not defined.  May be combined with `tt(i)' or `tt(O)'.
+is lexical.   Integers with more initial zeroes
+are sorted before those with fewer or none.  Hence the array `tt(foo1 foo02
+foo2 foo3 foo20 foo23)' is sorted into the order shown.
+May be combined with `tt(i)' or `tt(O)'.
 )
 item(tt(o))(
 Sort the resulting words in ascending order; if this appears on its