Oddness in ack (betterthangrep.com) - Sometimes I get a line number, sometimes not.
In the first example, I look for a simple phrase in some Python files. It works fine, and shows line number 233. In the second example, I look for all lines where the first column ends with '5'.
D:\DSWProj\2012L\src> perl D:\ack-standalone.pl "return True" *.py
Volume5.py
233: return True
D:\DSWProj\2012L\data\R123> perl D:\ack-standalone.pl "5 " NeedMoreCoffee_n5_*.data
Volume5 FooData coffee_n5 2013-01-29 10:14
397125 0 0 1 0
397135 0 0 1 0
Those two lines are exactly the first two lines in the file following the header line.
Why are there no line numbers in this second example? There's also no file name printed, and no colorization. The Python example does colorize output - the line numbers are yellow, file names green. (A surprise, since the last time I asked, was told Windows command line shell can't colorize anything at all.) Is this a bug in ack, or quirk of Windows? Did I do something unwittingly different between the two cases, besides the obvious searching for different things in different files?
Running on Windows 7 64-bit, using Strawberry Perl 5.16.2 downloaded two days ago (January 28th, 2013), and ack standalone script, ver 1.96, downloaded also two days ago.