From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18722 invoked from network); 19 Apr 2004 16:57:25 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Apr 2004 16:57:25 -0000 Received: (qmail 14384 invoked by alias); 19 Apr 2004 16:56:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7371 Received: (qmail 14359 invoked from network); 19 Apr 2004 16:56:49 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 19 Apr 2004 16:56:49 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 19 Apr 2004 16:56:49 -0000 Received: (qmail 25868 invoked from network); 19 Apr 2004 16:56:49 -0000 Received: from parhelion.firedrake.org (mail@193.201.200.77) by a.mx.sunsite.dk with SMTP; 19 Apr 2004 16:56:47 -0000 Received: from phil by parhelion.firedrake.org with local (Exim 3.35 #1 (Debian)) id 1BFc4c-0007fX-00 for ; Mon, 19 Apr 2004 17:56:46 +0100 Date: Mon, 19 Apr 2004 18:56:46 +0200 From: Phil Pennock To: zsh-users@sunsite.dk Subject: Re: turning off quote interpolation Message-ID: <20040419165646.GA25403@globnix.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20040419111834.GL11257@fruitcom.com> <87oepox7pz.fsf@ceramic.fifi.org> <20040419162224.GR11257@fruitcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040419162224.GR11257@fruitcom.com> Sender: Phil Pennock X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On 2004-04-19 at 18:22 +0200, Eric Smith wrote: > goo () { > w3m "http://www.google.com/search?q=$1+$2+$3+$4+$5+$6+$7+$8&num=100" > } If memory serves, you can't turn off the quoting stuff since that happens well before it's passed to a function or alias. FWIW, the power of zsh lets you do something like join the elements of an array together with a specified string used between each element. Eg, my equivalent function is defined as: function google { ${WebBrowser:-w3m} "http://www.google.com/search?q=${(j:+:)@}" } So, something like: function goo { w3m "http://www.google.com/search?q=${(j:+:)@}&num=100" } should help you get rid of that limit which you have. Beyond that, it's just a matter of getting into the habit of trapping quotes around strings, to allow things like & in a URL. I got in the habit of things like: % google '"Elizabeth Moon"' to look up information on one of my favourite authors, for instance. -Phil