GNU bug report logs - #42623
fgrep -x -f problem

Previous Next

Package: grep;

Reported by: Arthur Goldberg <artgoldberg <at> gmail.com>

Date: Thu, 30 Jul 2020 18:00:02 UTC

Severity: normal

Tags: moreinfo

Full log


Message #8 received at 42623 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Arthur Goldberg <artgoldberg <at> gmail.com>
Cc: 42623 <at> debbugs.gnu.org
Subject: Re: bug#42623: fgrep -x -f problem
Date: Thu, 30 Jul 2020 11:48:05 -0700
On 7/30/20 9:16 AM, Arthur Goldberg wrote:

> fgrep -x -f dfba.py dfba.py > actual_output.txt

That command works just fine for me with the file you attached. That is, this 
command:

fgrep -x -f dfba.py dfba.py | cmp - dfba.py

outputs nothing, as expected. This is on Ubuntu 18.04.4 which has fgrep 3.1 
(same as what you have).

I noticed that the file actual_output.txt that you attached had trailing CR at 
the end of each line, which would cause 'diff' to report a difference at any 
line. So perhaps the problem has to do with a Microsoft-oriented file system in 
your environment, or something like that.




This bug report was last modified 4 years and 271 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.