[Top][All Lists]

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

grep(1) - strange behaviour (most likely a bug) -- `grep -i --colour ""`

From: martinko
Subject: grep(1) - strange behaviour (most likely a bug) -- `grep -i --colour ""`
Date: Mon, 21 Mar 2005 23:29:42 +0100
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050220


i've found a bug in grep(1). short description follows.
i filed this bug originally with freebsd team but was just advised to contact you in the first place. original report with examples can be found here: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/79063

should you need my further assistance pls let me know.





FreeBSD mb-aw1n-bsd 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #5: Mon Feb 14 
19:45:04 CET 2005     address@hidden:/usr/obj/usr/src/sys/MB-AW1N  i386


     `grep -i --colour ""` runs mad and seems to generate ansi escape codes in a 
(infinite?) loop. it happens only when using empty ("") search string and both parameters 
(-i and --colour) are used.
pls find my orginal description below as posted to freebsd-questions mailing 
list. i also produced a typescript with script(1) which you may find under the 
2nd link/post.



     just run the following:
grep -i --colour ""
as soon as you type the first letter it gets mad and soon you'll have a huge 
typescript file as you can see in the link above.
codes/chars generated (as output on screen) seem to be random but i'm not sure 
about it.

reply via email to

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