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

PATCH: quotes around "$@" for 22794 and 22797



Index: Completion/Linux/Type/_fuse_arguments
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Type/_fuse_arguments,v
retrieving revision 1.1
diff -u -r1.1 _fuse_arguments
--- Completion/Linux/Type/_fuse_arguments	30 Sep 2006 21:39:16 -0000	1.1
+++ Completion/Linux/Type/_fuse_arguments	30 Sep 2006 21:55:53 -0000
@@ -18,7 +18,7 @@
 if (( long )); then
   argv[long]=($fargs --)
 else
-  set -- $@ $fargs
+  set -- "$@" $fargs
 fi
 
 while [[ $1 == -(O*|F*|[CRWsw]) ]]; do
@@ -38,10 +38,10 @@
   fsopt='*-o[specify mount options]:mount option:_fuse_values'
   [[ -n $cvalsvar ]] && fsopt+=" -A $cvalsvar"
   fsopt+=' mount\ option'
-  set -- $@ $fsopt
+  set -- "$@" $fsopt
 fi
 
-_arguments -R $opts $@
+_arguments -R $opts "$@"
 
 ret=$?
 
Index: Completion/Linux/Type/_fuse_values
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Type/_fuse_values,v
retrieving revision 1.1
diff -u -r1.1 _fuse_values
--- Completion/Linux/Type/_fuse_values	30 Sep 2006 21:39:16 -0000	1.1
+++ Completion/Linux/Type/_fuse_values	30 Sep 2006 21:55:53 -0000
@@ -44,12 +44,12 @@
   'attr_timeout[cache timeout for attributes]:timeout (s)'
 )
 
-[[ -n $cvalsvar ]] && set -- $@ ${(P)cvalsvar}
+[[ -n $cvalsvar ]] && set -- "$@" ${(P)cvalsvar}
 
 if [[ $# -eq 0 ]]; then
   set -- 'mount options' $fvals
 else
-  set -- $@ $fvals
+  set -- "$@" $fvals
 fi
 
 if [[ -n $state ]]; then
@@ -57,7 +57,7 @@
   state=
 fi
 
-_values $opts $@ && ret=0
+_values $opts "$@" && ret=0
 
 if [[ -n $state ]]; then
   compstate[restore]=
Index: Completion/Linux/Type/_wakeup_capable_devices
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Type/_wakeup_capable_devices,v
retrieving revision 1.1
diff -u -r1.1 _wakeup_capable_devices
--- Completion/Linux/Type/_wakeup_capable_devices	30 Sep 2006 21:03:45 -0000	1.1
+++ Completion/Linux/Type/_wakeup_capable_devices	30 Sep 2006 21:55:53 -0000
@@ -10,6 +10,6 @@
   desc+=$item
 done
 
-_describe -t wakeup-capable-devices 'wakeup capable device' desc $@ && ret=0
+_describe -t wakeup-capable-devices 'wakeup capable device' desc "$@" && ret=0
 
 return ret



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