From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1263 invoked from network); 18 Aug 2006 11:26:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Aug 2006 11:26:00 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 18896 invoked from network); 18 Aug 2006 11:25:51 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Aug 2006 11:25:51 -0000 Received: (qmail 2530 invoked by alias); 18 Aug 2006 11:25:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22619 Received: (qmail 2521 invoked from network); 18 Aug 2006 11:25:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Aug 2006 11:25:48 -0000 Received: (qmail 18494 invoked from network); 18 Aug 2006 11:25:48 -0000 Received: from c5850-a2-3-62-147-58-213.dial.proxad.net (HELO ay.vinc17.org) (62.147.58.213) by a.mx.sunsite.dk with SMTP; 18 Aug 2006 11:25:47 -0000 Received: from lefevre by ay.vinc17.org with local (Exim 4.62) (envelope-from ) id 1GE2St-00017t-9D; Fri, 18 Aug 2006 13:24:39 +0200 Date: Fri, 18 Aug 2006 13:24:39 +0200 From: Vincent Lefevre To: zsh-workers Subject: Re: zargs doesn't work reliably Message-ID: <20060818112439.GC27421@ay.vinc17.org> Mail-Followup-To: zsh-workers References: <237967ef0608171559k1bd8053bxf7a3d1cb53ef33e7@mail.gmail.com> <060817194225.ZM23196@torch.brasslantern.com> <237967ef0608172016s4a47b309sd4a78f5889cfe2c7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <237967ef0608172016s4a47b309sd4a78f5889cfe2c7@mail.gmail.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.13-vl-r13495 (2006-08-16) On 2006-08-18 05:16:50 +0200, Mikael Magnusson wrote: > On 8/18/06, Bart Schaefer wrote: > >(End manual page example, begin new one.) You can even do: > > > > zargs -e$'\0' -- * $'\0' ls -d > > > >unless you somehow have a file named (the nul byte). AFAIK, a file name can't contain a nul byte (anyway this would break many things, as the nul byte is the string terminator in C). [...] > Would this be possible? > zargs '[options]' 'command [initial-args]' [input-args] > ie the ' are literal quotes in the command so zargs knows exactly what > to do with the first two arguments (in which case you'd have to zargs > '' '' * if you wanted to omit them so maybe not aesthetically pleasing > in that regard). What if you need an initial-arg that contains a space? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA