zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: quotes around "$@" for 22794 and 22797
@ 2006-09-30 21:57 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2006-09-30 21:57 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-30 21:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-30 21:57 PATCH: quotes around "$@" for 22794 and 22797 Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).