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

Previous Next

Package: grep;

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

Date: 2020年7月30日 18:00:02 UTC

Severity: normal

Tags: moreinfo

To reply to this bug, email your comments to 42623 AT debbugs.gnu.org.

the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#42623; Package grep. (2020年7月30日 18:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arthur Goldberg <artgoldberg <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (2020年7月30日 18:00:02 GMT) Full text and rfc822 format available.

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

From: Arthur Goldberg <artgoldberg <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: fgrep -x -f problem
Date: 2020年7月30日 12:16:11 -0400
[Message part 1 (text/plain, inline)]
Hi Gnu grep folks
I believe that
fgrep -x -f file file
should output the contents of `file`. However, it outputs something very 
different for the attached file.
command:
fgrep -x -f dfba.py dfba.py > actual_output.txt
versions:
$ uname -a
Linux 8845f126fe89 4.19.76-linuxkit #1 SMP Thu Oct 17 19:31:58 UTC 2019 
x86_64 x86_64 x86_64 GNU/Linux
$ fgrep --version
grep (GNU grep) 3.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others, see 
<http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
Thanks
Arthur
-- 
Arthur Goldberg
https://www.linkedin.com/in/arthurgoldberg
artgoldberg <at> gmail.com
[actual_output.txt (text/plain, attachment)]
[dfba.py (text/x-python-script, attachment)]

Information forwarded to bug-grep <at> gnu.org:
bug#42623; Package grep. (2020年7月30日 18:49:02 GMT) Full text and rfc822 format available.

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: 2020年7月30日 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.

Added tag(s) moreinfo. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (2020年9月21日 19:48:01 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 106 days ago.

Previous Next


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

AltStyle によって変換されたページ (->オリジナル) /