Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: quote parameter expansion from GLOB_SUBST



On 10 May, Peter wrote:
> the (b) parameter flag to backslash-quote against pattern characters

Playing with this, I managed to get a BUG message:

% a='*'
% echo ${(bqq)a}
 utils.c:5104: BUG: bad quote type in quotestring
'*'

We've got (q-) for minimal quoting. If - is a sort of parameter to q,
perhaps we should continue that: (q*) might be more memorable. And
combining (b) with (q) is a bit odd anyway.

Also the completion function should be kept up-to-date.

Oliver

diff --git a/Completion/Zsh/Context/_brace_parameter b/Completion/Zsh/Context/_brace_parameter
index fcca4bf..3955cb7 100644
--- a/Completion/Zsh/Context/_brace_parameter
+++ b/Completion/Zsh/Context/_brace_parameter
@@ -143,6 +143,7 @@ if [[ $PREFIX = *'${('[^\)]# ]]; then
     "@:double-quoted splitting of scalars"
     "A:create array parameter"
     "a:sort in array index order (with O to reverse)"
+    "b:backslash quote pattern characters only"
     "c:count characters in an array (with \${(c)#...})"
     "C:capitalize words"
     "D:perform directory name abbreviation"



Messages sorted by: Reverse Date, Date, Thread, Author