Subject: Re: bug#42623: fgrep -x -f problem

From: Paul Eggert <[email-masked]>
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.