rtk-ai/rtk

rtk grep "-v" does not invert the search

Open

#1477 aperta il 23 apr 2026

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Rust (2914 fork)batch import
area:clibugeffort-smallfilter-qualitygood first issuepriority:medium

Metriche repository

Star
 (48.085 star)
Metriche merge PR
 (Merge medio 11g 1h) (45 PR mergiate in 30 g)

Descrizione

Sometimes an LLM wants to invert the search and will use the grep -v command. RTK doesn't support this because the -v argument controls verbosity

Steps to reproduce

rtk grep -v foo /etc/hosts

Expected result

rtk grep should return all lines in the file which do not contain the string "foo"

Actual result

rtk grep returns all lines which do contain the string "foo"

Guida contributor