about summary refs log tree commit diff
path: root/Doc/Zsh/expn.yo
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2012-05-31 21:08:31 +0200
committerMikael Magnusson <mikachu@gmail.com>2014-09-16 00:27:05 +0200
commit78dd672e1a8550f93ccd586b6a9ad35369c796f7 (patch)
tree9959af12149dfcfa2f5a4b7db8a380066dcb0dc4 /Doc/Zsh/expn.yo
parent089123f9e892e435dc23f5958571be4c26d52d7b (diff)
downloadzsh-78dd672e1a8550f93ccd586b6a9ad35369c796f7.tar.gz
zsh-78dd672e1a8550f93ccd586b6a9ad35369c796f7.tar.xz
zsh-78dd672e1a8550f93ccd586b6a9ad35369c796f7.zip
33136: P glob qual appends words when negated
Diffstat (limited to 'Doc/Zsh/expn.yo')
-rw-r--r--Doc/Zsh/expn.yo6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 532672b10..3fad8667d 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -2663,6 +2663,12 @@ list of glob qualifiers.
 A typical use for this is to prepend an option before all occurrences
 of a file name; for example, the pattern `tt(*(P:-f:))' produces the
 command line arguments `tt(-f) var(file1) tt(-f) var(file2) ...'
+
+If the modifier tt(^) is active, then var(string) will be appended
+instead of prepended.  Prepending and appending is done independently
+so both can be used on the same glob expression; for example by writing
+`tt(*(P:foo:^P:bar:^P:baz:))' which produces the command line arguments
+`tt(foo) tt(baz) var(file1) tt(bar) ...'
 )
 enditem()