From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4753 invoked from network); 18 Jan 2005 08:03:21 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Jan 2005 08:03:21 -0000 Received: (qmail 97556 invoked from network); 18 Jan 2005 07:53:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jan 2005 07:53:02 -0000 Received: (qmail 12637 invoked by alias); 18 Jan 2005 00:49:42 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8388 Received: (qmail 12626 invoked from network); 18 Jan 2005 00:49:42 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Jan 2005 00:49:42 -0000 Received: (qmail 12716 invoked from network); 18 Jan 2005 00:49:42 -0000 Received: from imap.gmx.net (HELO mail.gmx.net) (213.165.64.20) by a.mx.sunsite.dk with SMTP; 18 Jan 2005 00:49:39 -0000 Received: (qmail invoked by alias); 18 Jan 2005 00:49:38 -0000 Received: from pD9541CCB.dip.t-dialin.net (EHLO painless.painless.my-fqdn.de) (217.84.28.203) by mail.gmx.net (mp026) with SMTP; 18 Jan 2005 01:49:38 +0100 X-Authenticated: #15650693 Date: Tue, 18 Jan 2005 01:51:52 +0100 From: Christian Schneider To: zsh-users@sunsite.dk Subject: Re: recursive globbing, filename spaces and xargs Message-ID: <2005-01-18T01-39-47@painless.my-fqdn.de> Mail-Followup-To: zsh-users@sunsite.dk References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GPG-Key: gpg --recv-keys --keyserver wwwkeys.eu.pgp.net 47E322CE X-PGP-Fingerprint: 0095 C0F5 C03D 776A F585 0A46 4B6F 1932 47E3 22CE User-Agent: Mutt/1.5.6i (OpenBSD) X-Shell: zsh 4.2.3 (i686-crux-linux-gnu) Organization: Born to frag. X-Now-Playing: Nightwish - End Of All Hope X-Y-GMX-Trusted: 0 X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 * William Scott typed: > One of the things that I haven't been able to figure > out is how to deal with the error one gets when using > > ls **/* > > on a well-populated directory with lots of subdirectories. > > zsh: argument list too long > > If I do this when there are no filename spaces, it works: > > echo **/* | xargs ls > > but if there are spaces, it fails, and I can't seem to figure > out how to quote or escape the spaces. You can use `zargs' to do this: $ autoload -U zargs $ zargs -- ls **/* Read ``less ${^fpath}/zargs(N)'' for more details. HTH. -- http://www.strcat.de/zsh/#features [*] Christian 'strcat' Schneider http://www.strcat.de/zsh/#tipps [*] Email.......: strcat@gmx.net http://www.strcat.de/zsh/#modex [*] GPG-ID......: 47E322CE http://www.strcat.de/zsh/#links [*] [zsh - the Z shell]