From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15823 invoked from network); 1 Oct 2002 20:18:16 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Oct 2002 20:18:16 -0000 Received: (qmail 22460 invoked by alias); 1 Oct 2002 20:18:02 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17751 Received: (qmail 21834 invoked from network); 1 Oct 2002 20:14:35 -0000 Sender: jprice@redfish.gatech.edu To: "David =?iso-8859-1?q?G=F3mez?=" Cc: Zsh-workers Subject: Re: Argument list References: <20021001195417.GA13192@fargo> From: Jason Price Date: 01 Oct 2002 16:14:33 -0400 In-Reply-To: <20021001195417.GA13192@fargo> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit "David Gómez" writes: > I created a directory with 100000 files to test the new htree patch > for the ext3 filesystem, and found a bug when I tried to remove all > the files. The command 'rm *' gave the error 'zsh: argument list too > long'. If expansion doesn't support so many parameters, what it's the > supossed way to remove all these files without deleting the directory? This is actually an OS limit rather than a zsh limit. IIRC, zsh dynamically alocates space for arguments as needed. However, the OS usually has a hard limit set somewhere. ls | xargs rm though there's probably a cleaner way. Season the 'ls' command to taste. Jason