Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Argument list
- X-seq: zsh-workers 17753
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: David =?cp437?q?G=F3mez?= <david@xxxxxxxxxxxx>
- Subject: Re: Argument list
- Date: Tue, 1 Oct 2002 15:20:02 -0500
- Cc: Zsh-workers <zsh-workers@xxxxxxxxxx>
- In-reply-to: <20021001195417.GA13192@fargo>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20021001195417.GA13192@fargo>
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@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author