From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12029 invoked from network); 20 Apr 2004 04:01:05 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 20 Apr 2004 04:01:05 -0000 Received: (qmail 21754 invoked by alias); 20 Apr 2004 04:00:20 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7372 Received: (qmail 21729 invoked from network); 20 Apr 2004 04:00:19 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 20 Apr 2004 04:00:19 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 20 Apr 2004 4:0:18 -0000 Received: (qmail 29573 invoked from network); 20 Apr 2004 04:00:18 -0000 Received: from wbar3.sjo1-4-11-009-147.sjo1.dsl-verizon.net (HELO candle.brasslantern.com) (4.11.9.147) by a.mx.sunsite.dk with SMTP; 20 Apr 2004 04:00:16 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i3K40EO11954 for zsh-users@sunsite.dk; Mon, 19 Apr 2004 21:00:14 -0700 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040420040014.ZM11953@candle.brasslantern.com> Date: Tue, 20 Apr 2004 04:00:14 +0000 In-Reply-To: <20040419162224.GR11257@fruitcom.com> Comments: In reply to Eric Smith "Re: turning off quote interpolation" (Apr 19, 6:22pm) References: <20040419111834.GL11257@fruitcom.com> <87oepox7pz.fsf@ceramic.fifi.org> <20040419162224.GR11257@fruitcom.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: turning off quote interpolation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: **** X-Spam-Status: No, hits=4.7 required=6.0 tests=RCVD_IN_DYNABLOCK, RCVD_IN_NJABL,RCVD_IN_NJABL_DIALUP,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 4.7 On Apr 19, 6:22pm, Eric Smith wrote: } } goo () { } w3m "http://www.google.com/search?q=$1+$2+$3+$4+$5+$6+$7+$8&num=100" } } Question: Does it harm anything to include quotes when they aren't needed? goo() { w3m "http://www.google.com/search?q=${(j:+:)${(qqq)@}}&num=100" } With that def'n, the command goo "foo bar" baz calls w3m on a URL that looks like http://www.google.com/search?q="foo bar"+"baz"&num=100 where the quotes around "baz" are extraneous but (I think) harmless. Note though that also with that def'n the command goo 'foo " bar' produces the URL http://www.google.com/search?q="foo \" bar"&num=100 in which the backslash may not do what you want.