Nick Treleaven píše v St 10. 02. 2010 v 17:13 +0000:
On Wed, 10 Feb 2010 17:21:29 +0100 Daniel Milde info@milde.cz wrote:
I just found interesting bug, when Geany outputs whole file into search results.
Steps to reproduce:
- Place the attached file in some directory.
- Try 'search in files' in that directory. Search for keyword
'ini_set'. 3) Whole file should appear in messages/search results.
Strange. This may be a grep bug. If I run the command: grep ini_set *
from a terminal then the whole file is not shown like in Geany, but even so the lines don't seem to be correct matching lines.
What's even stranger is that ack and pcregrep also have this problem and the file seems to be UTF-8.
Aha - just tried looking at the file with less/cat and it seems there may be strange line endings. This is confusing grep.
Regards, Nick
P.S. BTW your email should have been in a new thread - it's not a reply. _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Ah, that's it :) That are Mac line endings.
I was glad that I finally found a Geany bug and again nothing :) Thanks
Regards Daniel