rtk-ai/rtk

rtk grep doesn't work with piped input

Open

#1476 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 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'

Guida contributor