From: Jason Price <jprice@cyberbuzz.gatech.edu>
To: "David Gómez" <david@pleyades.net>
Cc: Zsh-workers <zsh-workers@sunsite.dk>
Subject: Re: Argument list
Date: 01 Oct 2002 16:14:33 -0400 [thread overview]
Message-ID: <kgoy99h9as6.fsf@redfish.gatech.edu> (raw)
In-Reply-To: <20021001195417.GA13192@fargo>
"David Gómez" <david@pleyades.net> 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
next prev parent reply other threads:[~2002-10-01 20:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-01 19:54 David Gómez
2002-10-01 20:14 ` Jason Price [this message]
2002-10-01 20:20 ` Dan Nelson
2002-10-01 21:07 ` David Gómez
2002-10-02 8:08 ` Thomas Köhler
2002-10-02 9:40 ` David Gómez
2002-10-01 20:26 ` DervishD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=kgoy99h9as6.fsf@redfish.gatech.edu \
--to=jprice@cyberbuzz.gatech.edu \
--cc=david@pleyades.net \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).