delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/17/13:00:18

Date: Thu, 17 Nov 2005 13:00:06 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Chris Milam <chrismilam AT indx DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: FW: 1.5.18: grep -f option broken
In-Reply-To: <F5E29191ABCE8144B4E1F29FA098294E01CFF36A@CliffClavin.corp.indxhq.com>
Message-ID: <Pine.GSO.4.63.0511171257420.11096@slinky.cs.nyu.edu>
References: <F5E29191ABCE8144B4E1F29FA098294E01CFF36A AT CliffClavin DOT corp DOT indxhq DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Thu, 17 Nov 2005, Chris Milam wrote:

> In the latest release of grep (2.5.1a-2), I believe that the -f option
> (read expressions from a file) is no longer working.
> [snip manpage quote]
> However, it appears that no match of any input is ever found for any set
> of strings in the file specified by -f.  This functionality was working
> in an earlier release (I regret to say that I cannot remember the last
> time it was working but it was a release within the last year, I think).

I was only able to reproduce this behavior if the script had DOS line
endings on a binmode mount (which you have).  Run the script through d2u
and try again.

It's arguably a bug in grep that the pattern file should be opened in text
mode.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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