From 78dd672e1a8550f93ccd586b6a9ad35369c796f7 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 31 May 2012 21:08:31 +0200 Subject: 33136: P glob qual appends words when negated --- Doc/Zsh/expn.yo | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Doc') 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() -- cgit 1.4.1