From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5860 invoked from network); 18 Jan 2005 00:49:09 -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 00:49:09 -0000 Received: (qmail 12576 invoked from network); 18 Jan 2005 00:49:03 -0000 Received: from unknown (HELO sunsite.dk) (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jan 2005 00:49:03 -0000 Received: (qmail 18923 invoked by alias); 17 Jan 2005 15:19:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8384 Received: (qmail 18913 invoked from network); 17 Jan 2005 15:19:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Jan 2005 15:19:13 -0000 Received: (qmail 66459 invoked from network); 17 Jan 2005 15:19:13 -0000 Received: from hydrogen.ucsc.edu (128.114.41.29) by a.mx.sunsite.dk with SMTP; 17 Jan 2005 15:19:06 -0000 Received: from localhost (wgscott@localhost) by hydrogen.ucsc.edu (8.12.11/8.12.11) with ESMTP id j0HFEs2T001238 for ; Mon, 17 Jan 2005 07:14:54 -0800 (PST) X-Authentication-Warning: hydrogen.ucsc.edu: wgscott owned process doing -bs Date: Mon, 17 Jan 2005 07:14:54 -0800 (PST) From: William Scott To: zsh-users@sunsite.dk Subject: recursive globbing, filename spaces and xargs Message-ID: 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 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? Thanks. Bill Scott