Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Argument list



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