rtk-ai/rtk

rtk grep "-v" does not invert the search

Open

#1.477 aberto em 23 de abr. de 2026

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (2.914 forks)batch import
area:clibugeffort-smallfilter-qualitygood first issuepriority:medium

Métricas do repositório

Stars
 (48.085 stars)
Métricas de merge de PR
 (Mesclagem média 11d 1h) (45 fundiu PRs em 30d)

Description

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"

Guia do colaborador