summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Zsh/Command/_zattr4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c143a57bb..06abc71a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,9 @@
 
 	* 29740: Completion/Unix/Command/_wget: add --content-disposition.
 
+	* 29741: Completion/Zsh/Command/_zattr: add ret=0, fix filename
+	globbing like in 27658 for _zip.
+
 2011-09-05  Barton E. Schaefer  <schaefer@brasslantern.com>
 
 	* users/16302: Completion/Unix/Type/_path_files: pattern matching
@@ -15377,5 +15380,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5457 $
+* $Revision: 1.5458 $
 *****************************************************
diff --git a/Completion/Zsh/Command/_zattr b/Completion/Zsh/Command/_zattr
index cdc52281d..1924bb28d 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