package dctrl-tools
retitle 365795 grep-dctrl miscounts lines in error messages
thanks

Greg Ward wrote:
On 03 May 2006, Antti-Juhani Kaijanaho said:
I cannot reproduce this. Please provide an input file that demonstrates this problem (likely your available file or an excerpt; the excerpt you provided does not trigger this problem).

Sure; my current /var/lib/dpkg/available file is here:

  http://www.gerg.ca/cthulhu.gerg.ca-var-lib-dpkg-available.gz

If I download and uncompress this file I can reproduce the problem:

  $ wget http://www.gerg.ca/cthulhu.gerg.ca-var-lib-dpkg-available.gz
  $ gunzip cthulhu.gerg.ca-var-lib-dpkg-available.gz
  $ grep-dctrl blah cthulhu.gerg.ca-var-lib-dpkg-available
  grep-dctrl: cthulhu.gerg.ca-var-lib-dpkg-available:15510: expected a colon.

Thanks for the quick response, and thanks for grep-dctrl in general!

OK, I've diagnosed this.

First, grep-dctrl seems to miscount lines; the error message line number is wrong. I'm hijacking this bug report to this issue :)

Second, look at line 14805. grep-dctrl is correct in issuing the error message.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to