Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207651 - sys-apps/grep-2.5.1a-r1 output doesn't display complete matches expression
Summary: sys-apps/grep-2.5.1a-r1 output doesn't display complete matches expression
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-27 05:40 UTC by Hayama Yossihiro
Modified: 2008-01-28 00:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hayama Yossihiro 2008-01-27 05:40:46 UTC
When grep was used, the part of the chosen data isn't indicated.

Reproducible: Always

Steps to Reproduce:
1 This phenomenon is observed only by reported data.
2.grep execute with --color=auto or --color=always
3.An end of chosen data isn't indicated.    
4.command is   
  echo 'Jan 27 09:55:27 chez sm-mta[19491]: m0R0tImK019491: from=<mc@ipwap.org>, size=2633, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[217.174.106.9]'|/bin/grep --color=auto 217.174.106.9                    
Actual Results:  
Jan 27 09:55:27 chez sm-mta[19491]: m0R0tImK019491: from=<mc@ipwap.org>, size=2633, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[217.174.106.]

******** last octet of IP isn't displaied ***********

Expected Results:  
Jan 27 09:55:27 chez sm-mta[19491]: m0R0tImK019491: from=<mc@ipwap.org>, size=2633, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[217.174.106.9]

It occurs only by the following data.

'Jan 27 09:55:27 chez sm-mta[19491]: m0R0tImK019491: from=<mc@ipwap.org>, size=2633, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[217.174.106.9]'

grep and pcre version are
sys-apps/grep-2.5.1a-r1  USE="nls pcre -static"
dev-libs/libpcre-7.4  USE="unicode -doc"

This phenomenon is reproduced by more than one computer.
(kernel is 2.6.23-gentoo-r6 and 2.6.24-gentoo)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-27 09:22:38 UTC
WFM... post your emerge --info.
Comment 2 Hayama Yossihiro 2008-01-28 00:58:09 UTC
sorry, this wasn't a problem of grep. A problem of termminal display. There was a person who points out a problem of TERMINAL.(i used ktern) Then I checked terminal.
From the result, 
When next characters are displaied, The last 1 character of 13 characters circled by esp sequence isn't displaied.

echo -e '...135 any characters...\033[1;31m..13 char...\033[0m\033[K'

I thought troubled characters are displaied as follows;
 '..135 any characters...\033[1;31mxxx.xxx.xxx.9\033[0m\033[K]'

then last '9' is not disolaied.

There is cause in the environment of kterm or my computer.
I do wrong comment and am very sorry.