diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-03 21:10:54 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-03 21:10:54 +0000 |
commit | cc026d233989e91186bc50dc201535696aed9b75 (patch) | |
tree | 9902bf502d2ae4ec2c6b2d931778efe59860b131 /Doc/Zsh/expn.yo | |
parent | e5d8a42249026d83c5135869e602fc413346ff0d (diff) | |
download | zsh-cc026d233989e91186bc50dc201535696aed9b75.tar.gz zsh-cc026d233989e91186bc50dc201535696aed9b75.tar.xz zsh-cc026d233989e91186bc50dc201535696aed9b75.zip |
24788: ${(m)#...} returns string print width
Diffstat (limited to 'Doc/Zsh/expn.yo')
-rw-r--r-- | Doc/Zsh/expn.yo | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index 4adc09d44..3d4c92d4a 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -943,11 +943,13 @@ Control characters are always assumed to be one unit wide; this allows the mechanism to be used for generating repetitions of control characters. ) item(tt(m))( -Only useful together with tt(l) and tt(r) when the tt(MULTIBYTE) option +Only useful together with one of the flags tt(l) or tt(r) or with the +tt(#) length operator when the tt(MULTIBYTE) option is in effect. Use the character width reported by the system in -calculating the how much of the string it occupies. Most printable -characters have a width of one unit, however certain Asian character sets -and certain special effects use wider characters. +calculating the how much of the string it occupies or the overall +length of the string. Most printable characters have a width of one +unit, however certain Asian character sets and certain special effects +use wider characters; combining characters have zero width. ) item(tt(r:)var(expr)tt(::)var(string1)tt(::)var(string2)tt(:))( As tt(l), but pad the words on the right and insert var(string2) |