delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/27/13:12:36

Date: Mon, 27 Oct 1997 20:07:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
cc: djgpp AT delorie DOT com
Subject: Re: subdirectories (was: ANNOUNCE: Grep 2.1 uploaded)
In-Reply-To: <m0xPnhq-000S1oC@inti.gov.ar>
Message-ID: <Pine.SUN.3.91.971027200228.21347D-100000@is>
MIME-Version: 1.0

On Mon, 27 Oct 1997, Salvador Eduardo Tropea (SET) wrote:

> > So running a pipe of find and grep is complex, but launching an editor
> > for the same task is not?  Interesting logic...
> 
> I think you are joking. Don't you work inside an editor when you write 
> programs, compile, etc? I think you develope from inside of EMACS, and no from 
> the bash prompt ... or not?

I do both.

It's really a matter of philosophy, but I think that editors should not 
invent new ways of doing things for which there already are tools to do 
them.  So it is better to make an interface from the editor to run `grep' 
as an external program than to invent a command which will emulate 
`grep'.  For example, Emacs has a command that runs `grep', then 
displays its output in a variety of ways (with color highlighting of 
hits, in a directory-like format, etc.).  Reinventing the wheel is IMHO a 
waste of effort; it's better to build on work by others than to do it all 
from scratch.  That's my opinion.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019