From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15860 invoked from network); 1 Oct 2002 20:20:17 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Oct 2002 20:20:17 -0000 Received: (qmail 24067 invoked by alias); 1 Oct 2002 20:20:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17753 Received: (qmail 24050 invoked from network); 1 Oct 2002 20:20:05 -0000 Date: Tue, 1 Oct 2002 15:20:02 -0500 From: Dan Nelson To: David =?cp437?Q?G=F3mez?= Cc: Zsh-workers Subject: Re: Argument list Message-ID: <20021001202002.GG7147@dan.emsphone.com> References: <20021001195417.GA13192@fargo> Mime-Version: 1.0 Content-Type: text/plain; charset=cp437 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20021001195417.GA13192@fargo> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i In the last episode (Oct 01), David Gmez said: > 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? You sure the error wasn't 'zsh: argument list too long: rm' ? internal shell wildcard expansion has no argument limit. execve() does. Either raise your kernel's limit (sorry; don't know how to do it on Linux), or use "echo * | xargs rm", and let xargs split the argument list up. -- Dan Nelson dnelson@allantgroup.com