[OT] Re: The vi editor causes brain damage

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jiri Slaby <jirislaby@...>
Cc: Marc Perkel <mperkel@...>, <linux-kernel@...>
Date: Sunday, August 19, 2007 - 3:21 am

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)

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
The vi editor causes brain damage, Marc Perkel, (Sun Aug 19, 1:20 am)
Re: The vi editor causes brain damage, , (Sun Aug 19, 4:14 pm)
Re: The vi editor causes brain damage, Jiri Slaby, (Sun Aug 19, 3:15 am)
Re: The vi editor causes brain damage, Marc Perkel, (Sun Aug 19, 9:08 am)
[OT] Re: The vi editor causes brain damage, Willy Tarreau, (Sun Aug 19, 3:21 am)
Re: [OT] Re: The vi editor causes brain damage, Torsten Duwe, (Sun Aug 19, 9:55 am)
Re: The vi editor causes brain damage, Marc Perkel, (Sun Aug 19, 9:22 am)
Re: The vi editor causes brain damage, Michael Tharp, (Sun Aug 19, 7:03 pm)
Re: The vi editor causes brain damage, Casey Dahlin, (Sun Aug 19, 9:55 pm)
Re: The vi editor causes brain damage, Arjan van de Ven, (Sun Aug 19, 1:32 pm)
Re: The vi editor causes brain damage, Paolo Ornati, (Sun Aug 19, 10:48 am)
Re: The vi editor causes brain damage, Marc Perkel, (Sun Aug 19, 11:32 am)
Re: Re: The vi editor causes brain damage, Jose Celestino, (Sun Aug 19, 10:06 am)
Re: The vi editor causes brain damage, Willy Tarreau, (Sun Aug 19, 9:33 am)
Re: The vi editor causes brain damage, Al Viro, (Sun Aug 19, 2:15 am)
Re: The vi editor causes brain damage, Marc Perkel, (Sun Aug 19, 2:29 am)
Re: The vi editor causes brain damage, , (Sun Aug 19, 12:24 am)
Re: The vi editor causes brain damage, Marc Perkel, (Sun Aug 19, 9:07 am)