Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Subject: RE: FW: 1.5.18: grep -f option broken
Date: Thu, 17 Nov 2005 10:01:57 -0800
Message-ID: <F5E29191ABCE8144B4E1F29FA098294E01CFF3B5@CliffClavin.corp.indxhq.com>
From: "Chris Milam" <chrismilam@indx.com>
To: <cygwin@cygwin.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id jAHI1SrP030009

Thanks! 

-----Original Message-----
From: Igor Pechtchanski [mailto:pechtcha@cs.nyu.edu] 
Sent: Thursday, November 17, 2005 10:00 AM
To: Chris Milam
Cc: cygwin@cygwin.com
Subject: Re: FW: 1.5.18: grep -f option broken

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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


