public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: The vi editor causes brain damage
@ 2007-08-20  9:41 Tim Tassonis
  0 siblings, 0 replies; 16+ messages in thread
From: Tim Tassonis @ 2007-08-20  9:41 UTC (permalink / raw)
  To: LKML

Hi Marc

> Before everyone gets pissed off and freaks out why
> don't you ponder the question why rm won't delete all
> the files in the directory. If you can't grasp that
> then you're brain damaged.
> 
> Think big people. Say NO to vi!

At first I thought you've got a point here: you definitely _do_ suffer 
from brain damage. Then again, I know too many people without brain 
damage that are using vi, so it must me something else.

Maybe a car accindent, or your mother drinking a bottle of vodka per day 
in your pregnancy?


Regards
Tim


^ permalink raw reply	[flat|nested] 16+ messages in thread
* [OT] Re: The vi editor causes brain damage
  2007-08-19  7:15 ` Jiri Slaby
@ 2007-08-19  7:21 Willy Tarreau
  2007-08-19 13:22 ` Marc Perkel
  0 siblings, 1 reply; 16+ messages in thread
From: Willy Tarreau @ 2007-08-19  7:21 UTC (permalink / raw)
  To: Jiri Slaby; +Cc: Marc Perkel, linux-kernel

On Sun, Aug 19, 2007 at 09:15:22AM +0200, Jiri Slaby wrote:
> Marc Perkel napsal(a):
> > Let me give you and example of the difference between
> > Linux open source world brain damaged thinking and
> > what it's like out here in the real world.
> > 
> > Go to a directory with 10k files and type:
> > 
> > rm *
> > 
> > What do you get?
> > 
> > /bin/rm: Argument list too long
> 
> What does this have to do with rm command?

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)


^ permalink raw reply	[flat|nested] 16+ messages in thread
* The vi editor causes brain damage
@ 2007-08-19  5:20 Marc Perkel
  2007-08-19  6:15 ` Al Viro
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Marc Perkel @ 2007-08-19  5:20 UTC (permalink / raw)
  To: linux-kernel

Let me give you and example of the difference between
Linux open source world brain damaged thinking and
what it's like out here in the real world.

Go to a directory with 10k files and type:

rm *

What do you get?

/bin/rm: Argument list too long

If you map a network drive in DOS and type:

del *

It works.

That's the problem with the type of thinking in the
open source world. Why can DOS delete an infinite
number of files and rm can't? Because rm was written
using the "vi" editor and it causes brain damage and
that's why after 20 years rm hasn't caught up with
del.

Before everyone gets pissed off and freaks out why
don't you ponder the question why rm won't delete all
the files in the directory. If you can't grasp that
then you're brain damaged.

Think big people. Say NO to vi!


Marc Perkel
Junk Email Filter dot com
http://www.junkemailfilter.com


       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-08-20  9:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-20  9:41 The vi editor causes brain damage Tim Tassonis
  -- strict thread matches above, loose matches on Subject: below --
2007-08-19  7:21 [OT] " Willy Tarreau
2007-08-19 13:22 ` Marc Perkel
2007-08-19 13:33   ` Willy Tarreau
2007-08-19 14:48   ` Paolo Ornati
2007-08-19 15:32     ` Marc Perkel
2007-08-19 17:32   ` Arjan van de Ven
2007-08-19 23:03   ` Michael Tharp
2007-08-20  1:55     ` Casey Dahlin
2007-08-19  5:20 Marc Perkel
2007-08-19  6:15 ` Al Viro
2007-08-19  6:29   ` Marc Perkel
2007-08-19  4:24     ` hotmetal
2007-08-19 13:07       ` Marc Perkel
2007-08-19  7:15 ` Jiri Slaby
2007-08-19 13:08   ` Marc Perkel
2007-08-19 20:14 ` Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox