rtk-ai/rtk

rtk grep doesn't work with piped input

Open

#1,476 创建于 2026年4月23日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (48,085 star) (2,914 fork)batch import
bugeffort-smallfilter-qualitygood first issue

描述

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'

贡献者指南