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

--smart-case is fooled by capital letters in metacharacters #670

Closed petdance closed 4 years ago

petdance commented 5 years ago
ack --smart-case 'select \S+ from'

The capital S makes ack think that there's a capital letter in the pattern and therefore the search should be case-sensitive.

This is also a problem in ack3. https://github.com/beyondgrep/ack3/issues/156

petdance commented 5 years ago

This has been fixed in ack3.