Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 1997 10:46:11 -0800 (PST)
From:      Wolfram Schneider <wosch@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-gnu@FreeBSD.ORG
Subject:   cvs commit: src/gnu/usr.bin/grep Makefile grep.1 grep.c
Message-ID:  <199712201846.KAA29257@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
wosch       1997/12/20 10:46:10 PST

  Modified files:
    gnu/usr.bin/grep     Makefile grep.1 grep.c 
  Log:
  Added builtin decompression using zlib library, option -Z.
  
  Enabled this new feature with the makefile variable GREP_LIBZ. If
  you don't like it, compile with `make GREP_LIBZ='.
  
  grep + zlib has several advantages:
  
  - the shell script zgrep(1) will be basically a one line
    exec grep -Z "$@"
  
  - no shell script, no bugs. The current zgrep implementations
    have many bugs and some grep options are no supported.
  
  - no shell script, no security risks.
  
  - it is a magnitude faster than a shell script
  
  Also fixed:
  0 -> STDIN_FILENO
  Close a file descriptor only if the open call was successfully. It does
  not hurt for the open(2) function, but the gzclose(3) function
  died in free() to free up (not) allocated memory.
  
  Revision  Changes    Path
  1.10      +15 -1     src/gnu/usr.bin/grep/Makefile
  1.5       +11 -5     src/gnu/usr.bin/grep/grep.1
  1.9       +106 -62   src/gnu/usr.bin/grep/grep.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712201846.KAA29257>