bug-grep
[Top][All Lists]
Advanced

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

[bug #25757] read from file results are order dependent


From: anonymous
Subject: [bug #25757] read from file results are order dependent
Date: Wed, 04 Mar 2009 00:52:15 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1

URL:
  <http://savannah.gnu.org/bugs/?25757>

                 Summary: read from file results are order dependent
                 Project: grep
            Submitted by: None
            Submitted on: Wed 04 Mar 2009 12:52:13 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hi,

This must certainly not be correct behavior.  Switching the order of patterns
read from a file gives different results.  Note that actually none of the
results are correct.  There should be three matches.  I've tried this on
different strings and on two different platforms.

]$ cat dtest.list
dogthatdog

]$ cat drtest
dog
that
]$grep -of drtest dtest.list
dog
dog

]$ cat dtest
that
dog
]$grep -of dtest dtest.list
that
dog

thnx,
mik






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25757>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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