rtk-ai/rtk

rtk grep doesn't work with piped input

Open

#1.476 geöffnet am 23. Apr. 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
area:clibugeffort-smallfilter-qualitygood first issuepriority:medium

Repository-Metriken

Stars
 (48.085 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)

Beschreibung

Sometimes an LLM wants to pipe a command's output through grep. This doesn't work currently

Steps to reproduce

ps aux | rtk grep bash

Expected result

rtk grep should grep STDIN

Actual result

rtk grep searches through all files in the current working directory for the string

Example

$ ps aux | grep bash
user      215328  0.0  0.0  35152 19720 pts/0    SNs  11:18   0:00 /bin/bash
root      217325  0.0  0.0  24652  9180 pts/1    SN+  11:22   0:00 -bash
user      218879  0.0  0.0  34552 19160 pts/2    SNs  11:23   0:00 /bin/bash
user      224916  0.0  0.0  18980  2364 pts/2    SN+  11:32   0:00 grep --color=auto bash
$ ps aux | rtk grep bash
0 matches for 'bash'

Contributor Guide