On Sun, Aug 19, 2007 at 09:15:22AM +0200, Jiri Slaby wrote:Nothing, and no more with linux development. Marc confuses shell and rm. Under DOS, when he types "del *", the shell calls the builtin function "del" and passes it only one argument "*". The del function is then responsible for iterating through the files using getfirst/getnext. This is also why mostly only builtin shell commands support "*", while most external commands do not support it, since they have to re-implement the same code to iterate through the files (try "debug c*.com", it will not work). Under unix, the shell resolves "*" and passes the 10000 file names to the "rm" command. Now, execve() may fail because 10000 names in arguments can require too much memory. That's why find and xargs were invented! The solution is easy : find . -maxdepth 1 | xargs rm So this has nothing to do with rm, nor with rm being open-source, and even less with rm being written with vi, and Marc's rant is totally wrong and off-topic. Maybe he was drunk when posting, or maybe someone used his keyboard to make him look like a complete fool. Or maybe he really is. Willy (please do not follow up on this OT thread, responses to /dev/null) -
| hooanon05 | [PATCH 67/67] merge aufs |
| Greg Kroah-Hartman | [PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt |
| monstr | [PATCH 33/52] [microblaze] bug headers files |
| Oliver Pinter | Re: x86: 4kstacks default |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
