From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12396 invoked from network); 30 Sep 2006 21:57:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Sep 2006 21:57:26 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 1881 invoked from network); 30 Sep 2006 21:57:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Sep 2006 21:57:20 -0000 Received: (qmail 2097 invoked by alias); 30 Sep 2006 21:57:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22800 Received: (qmail 2088 invoked from network); 30 Sep 2006 21:57:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 30 Sep 2006 21:57:18 -0000 Received: (qmail 1558 invoked from network); 30 Sep 2006 21:57:18 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 30 Sep 2006 21:57:17 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 0956E70055; Sat, 30 Sep 2006 17:57:16 -0400 (EDT) Date: Sat, 30 Sep 2006 17:57:16 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: quotes around "$@" for 22794 and 22797 Message-ID: <20060930215716.GA25286@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) 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