[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42623: fgrep -x -f problem

From: Paul Eggert
Subject: bug#42623: fgrep -x -f problem
Date: Thu, 30 Jul 2020 11:48:05 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]