bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch #4596] "egrep" and "fgrep" as minimal argv[0]-independent exe


From: Charles Levert
Subject: Re: [patch #4596] "egrep" and "fgrep" as minimal argv[0]-independent executables
Date: Thu, 3 Nov 2005 23:41:10 -0500
User-agent: Mutt/1.4.1i

* On Friday 2005-11-04 at 04:22:53 +0000, Charles Levert wrote:
> 
> URL:
>   <http://savannah.gnu.org/patch/?func=detailitem&item_id=4596>
> 
> Summary: "egrep" and "fgrep" as minimal argv[0]-independent executables
> Details:
> 
> The following set of changes aims to make "egrep" and "fgrep" minimal
> executable programs for legacy applications, instead of shell scripts.  This
> "fgrep" is much smaller than "grep".  This set of changes appears more
> daunting than it really is.
> 
> Full ChangeLog entry within.  Apply relative to current CVS.
> 
> Please test and comment.

I posted this patch on Savannah since it's 25 Ko.

On my system, I get:

==========================================================================
bash$ ls --full-time src/*grep
-rwx------  1 tst tst 206458 2005-11-03 21:51:21.000000000 -0500 src/egrep
-rwx------  1 tst tst 144321 2005-11-03 21:51:22.000000000 -0500 src/fgrep
-rwx------  1 tst tst 213757 2005-11-03 21:51:19.000000000 -0500 src/grep
bash$ size src/*grep
   text    data     bss     dec     hex filename
  64969     808    2456   68233   10a89 src/egrep
  36694     740    1008   38442    962a src/fgrep
  68339     824    2456   71619   117c3 src/grep
bash$ strip src/*grep
bash$ ls --full-time src/*grep
-rwx------  1 tst tst 68684 2005-11-03 23:12:09.000000000 -0500 src/egrep
-rwx------  1 tst tst 40008 2005-11-03 23:12:09.000000000 -0500 src/fgrep
-rwx------  1 tst tst 72780 2005-11-03 23:12:09.000000000 -0500 src/grep
=========================================================================

> -------------------------------------------------------
> Date: Fri 11/04/05 at 04:22  Name: gefp.patch  Size: 25.11KB   By:
> charles_levert
> Unidiff patch
> <http://savannah.gnu.org/patch/download.php?item_id=4596&item_file_id=5430>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]