From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11262 invoked from network); 18 Jan 2005 08:04:43 -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:04:43 -0000 Received: (qmail 1009 invoked from network); 18 Jan 2005 07:53:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jan 2005 07:53:19 -0000 Received: (qmail 23543 invoked by alias); 18 Jan 2005 01:16:03 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8389 Received: (qmail 23528 invoked from network); 18 Jan 2005 01:16:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Jan 2005 01:16:02 -0000 Received: (qmail 20505 invoked from network); 18 Jan 2005 01:16:02 -0000 Received: from tantale.fifi.org (216.27.190.146) by a.mx.sunsite.dk with SMTP; 18 Jan 2005 01:15:57 -0000 Received: from ceramic.fifi.org (mail@ceramic.fifi.org [216.27.190.147]) by tantale.fifi.org (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id RAA30875; Mon, 17 Jan 2005 17:15:49 -0800 Received: from phil by ceramic.fifi.org with local (Exim 4.22) id 1CqhyH-00026l-FP; Mon, 17 Jan 2005 17:15:49 -0800 To: William Scott Cc: zsh-users@sunsite.dk Subject: Re: recursive globbing, filename spaces and xargs References: Mail-Copies-To: nobody From: Philippe Troin Date: 17 Jan 2005 17:15:49 -0800 In-Reply-To: Message-ID: <87hdlf4jwa.fsf@ceramic.fifi.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 writes: > Hi: > > 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. > > Any suggestions, or should I stick to find? print -N **/* | xargs -0 .... Phil.