ggreer / the_silver_searcher

A code-searching tool similar to ack, but faster.

Home Page:http://geoff.greer.fm/ag/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

silver_search not producing result if using regex (-G) and pattern search switch (-g) options

ciscohack opened this issue · comments

Hello Experts,

When i use ag options -g and -G switch to search some keyword. I have noticed silver search failed to produce result. I am running ag on macOS 12.3 and my ag version also latest one (ag version 2.2.0)

ag -G "^hap$" sw_techsupportinfo
STDIN

if i used below search string it highlight complete file instead of single word
ag -g "hap" sw_techsupportinfo

now if i used normal ag for same keyword search everything works fine

ag "hap" sw_techsupportinfo
STDIN
105: Service: snmpd hap reset

last search method show correct match and highlight..

I feel there is some issue with ag tool