beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Warnings when using ack #315

Closed robrwo closed 11 years ago

robrwo commented 11 years ago

The following command

ack -i "[\'\"](\w+\.)?\w+ (asc|desc)['\"]" .

issues the following warnings:

Use of uninitialized value $match_start in addition (+) at /usr/local/bin/ack line 522, <$__ANONIO__> line 33.
Use of uninitialized value $match_start in subtraction (-) at /usr/local/bin/ack line 522, <$__ANONIO__> line 33.
Use of uninitialized value $match_end in subtraction (-) at /usr/local/bin/ack line 522, <$__ANONIO__> line 33.
Use of uninitialized value $match_start in addition (+) at /usr/local/bin/ack line 527, <$__ANONIO__> line 33.
Use of uninitialized value $match_start in subtraction (-) at /usr/local/bin/ack line 527, <$__ANONIO__> line 33.
Use of uninitialized value $match_end in subtraction (-) at /usr/local/bin/ack line 527, <$__ANONIO__> line 33.
hoelzro commented 11 years ago

@robrwo Thanks for the bug report! What version of ack are you using to generate this?

robrwo commented 11 years ago

@hoelzro 2.04

hoelzro commented 11 years ago

That explains things; this bug has been fixed in the dev branch for quite some time. =)

petdance commented 11 years ago

This fix is in 2.06 about to be released tonight.

robrwo commented 11 years ago

Thanks!