about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2014-10-12 17:52:11 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-10-12 17:52:11 +0100
commit3b5d77d819e1b7a94c4b14d69bddb2dddf8605ff (patch)
tree226e161923542e6c1bf983a8350b65494c4bda41 /Doc
parent521313b4b95817c9144ab43ab121da934f99bd51 (diff)
downloadzsh-3b5d77d819e1b7a94c4b14d69bddb2dddf8605ff.tar.gz
zsh-3b5d77d819e1b7a94c4b14d69bddb2dddf8605ff.tar.xz
zsh-3b5d77d819e1b7a94c4b14d69bddb2dddf8605ff.zip
33423: expand ${(p)...} to allow ${(ps.$param.)...}
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/expn.yo13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 5aab25954..a0478e78c 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -1124,6 +1124,19 @@ item(tt(p))(
 Recognize the same escape sequences as the tt(print) builtin
 in string arguments to any of the flags described below that
 follow this argument.
+
+Alternatively, with this option string arguments may be in the form
+tt($)var(var) in which case the value of the variable is substituted.
+Note this form is strict; the string argument does not undergo general
+parameter expansion.
+
+For example,
+
+example(sep=:
+val=a:b:c
+print ${+LPAR()ps.$sep.+RPAR()val})
+
+splits the variable on a tt(:).
 )
 item(tt(~))(
 Strings inserted into the expansion by any of the flags below are to