Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Similar fix to _zattr as in _zip for quoting
- X-seq: zsh-workers 29741
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Similar fix to _zattr as in _zip for quoting
- Date: Mon, 29 Aug 2011 17:34:10 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer; bh=b4MCKK8Q7uc/MbXI5LL7mx8iWT7jIelkboFdYpl8+kM=; b=KMwezlHDV/lVNXHO1VVfKKYxHCvxdZb4YRM/cfcN1+UPznJYHlUTo5Q8xVhUNvgWwo dIcVfq+psMpcZ6matFeD4zeWamWQQMwu8ZDmBcX1/RANd5kUIZFevCwF5qxaQUKLV2iq XRqoN7ckD4KaP7MswfwC69X+NBthX7C+/6wDQ=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
Completion/Zsh/Command/_zattr | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Completion/Zsh/Command/_zattr b/Completion/Zsh/Command/_zattr
index cdc5228..1924bb2 100644
--- a/Completion/Zsh/Command/_zattr
+++ b/Completion/Zsh/Command/_zattr
@@ -26,9 +26,9 @@ _arguments \
'1:file:_files' \
'2:parameter'
;;
-esac
+esac && ret=0
if [[ $state = attrs ]]; then
- zlistattr $~line[1] REPLY 2> /dev/null
+ zlistattr ${~${(Q)line[1]}} REPLY 2> /dev/null
_wanted attrs expl 'attribute' compadd $REPLY
fi
--
1.7.5.4
Messages sorted by:
Reverse Date,
Date,
Thread,
Author