about summary refs log tree commit diff
path: root/Doc/Zsh/expn.yo
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-03 13:05:39 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-03 13:05:39 +0000
commit17e79c01575b26e28e5f978d99cff250a6d9e63b (patch)
tree0c5a6ae7de20b12d9fbe63d6370fe8c07f1d6452 /Doc/Zsh/expn.yo
parentcdbbb405de3a179e70ad6e9d5e324c6c6f5d04e8 (diff)
downloadzsh-17e79c01575b26e28e5f978d99cff250a6d9e63b.tar.gz
zsh-17e79c01575b26e28e5f978d99cff250a6d9e63b.tar.xz
zsh-17e79c01575b26e28e5f978d99cff250a6d9e63b.zip
fix for the (z) flag: report partial word (like `"foo', without a closing quote); mention in manual that (z) is handled lately (11117)
Diffstat (limited to 'Doc/Zsh/expn.yo')
-rw-r--r--Doc/Zsh/expn.yo7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index e9e3b95c9..c0e525067 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -679,6 +679,11 @@ for `tt(ps:\n:)'.
 item(tt(z))(
 Split the result of the expansion into words using shell parsing to
 find the words, i.e. taking into account any quoting in the value.
+
+Note that this is done very lately, as for the `tt((s))' flag. So to
+access single words in the result, one has to use nested expansions as 
+in `tt(${${(z)foo}[2]}'. Likewise, to remove the quotes in the
+resulting words one would do: `tt(${(Q)${(z)foo}})'.
 )
 item(tt(t))(
 Use a string describing the type of the parameter where the value
@@ -839,7 +844,7 @@ Note that the `tt((F))' flag implicitly supplies a string for joining in this
 manner.
 )
 item(tt(8.) em(Forced Splitting))(
-If one of the `tt((s))' or `tt((f))' flags are present, or the `tt(=)'
+If one of the `tt((s))', `tt((f))' or `tt((z))' flags are present, or the `tt(=)'
 specifier was present (e.g. tt(${=)var(var)tt(})), the word is split on
 occurrences of the specified string, or (for tt(=) with neither of the two
 flags present) any of the characters in tt($IFS).