summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2022-03-31 13:57:56 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2022-03-31 13:57:56 +0100
commit41eb200d66e4bea7bc5798888a1755cdf5daa3b0 (patch)
tree756568bf08955d8a9fd86eee7c94bdf8d8305be6
parent774c634d2e494046865e59af2f9e3b2d0a74597a (diff)
downloadzsh-41eb200d66e4bea7bc5798888a1755cdf5daa3b0.tar.gz
zsh-41eb200d66e4bea7bc5798888a1755cdf5daa3b0.tar.xz
zsh-41eb200d66e4bea7bc5798888a1755cdf5daa3b0.zip
27639: clarify that ${(#)...} deals with character codes.
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/expn.yo7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e6f73e30e..8c0f3e6ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-03-31  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* 27639: Doc/Zsh/expn.yo: clarify that ${(#)...} deals with
+	character codes.
+
 2022-03-30  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* 49906 (Bart), 49911: Doc/Zsh/builtins.yo,
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 00cbbcd27..bbacc6ae4 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -968,9 +968,10 @@ following flags are supported:
 
 startitem()
 item(tt(#))(
-Evaluate the resulting words as numeric expressions and output the
-characters corresponding to the resulting integer.  Note that this form is
-entirely distinct from use of the tt(#) without parentheses.
+Evaluate the resulting words as numeric expressions and interpret
+these as character codes.  Output the corresponding characters.  Note
+that this form is entirely distinct from use of the tt(#) without
+parentheses.
 
 If the tt(MULTIBYTE) option is set and the number is greater than 127
 (i.e. not an ASCII character) it is treated as a Unicode character.