bug-grep
[Top][All Lists]
Advanced

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

bug report, grep not display the matched sting


From: Quan Zhang
Subject: bug report, grep not display the matched sting
Date: Fri, 1 Mar 2013 17:48:24 +0800

system env:
Fedora 18
address@hidden grep-bug]$ grep -V
grep (GNU grep) 2.14
Copyright (C) 2012 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>.


desc:
grep could not output matched string in some case

how to reproduce:

   1. put the attached files in a same dir
   2. run the script x.sh
   3. you will see the matched string
   4. run the same command in the script ,it may be looks like this
      - > cat tmp-a.tmp|grep --color=never Location|grep -Eo 'https.*'
   5. you will see a blank line was output. and it should be the same with
   running the script

thanks for any one of you who will fix this bug.


Quan
2013-03-01

Attachment: tmp-a.tmp
Description: Binary data

Attachment: x.sh
Description: Bourne shell script


reply via email to

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