You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rtk grep fails on patterns containing \[ (backslash appears to be dropped) #4737
rtk proxy rg -n '^\[' rx.txt also works correctly.
Guess
The pattern seems to lose its backslashes when rtk forwards it to GNU grep (\[ arrives as [), which matches both error messages. Possibly related to #2817 (rtk grep shells out to GNU grep).
Activity
rtk-wshm-sync-bot commentedon Oct 22, 2026
🔍 Automated Triage
bughighSummary
rtk grep drops backslashes from regex patterns before invoking GNU grep, causing valid patterns like
\[to fail with exit 2.📁 Relevant files
src/commands/grep.rsSuggested Actions
rtk grep -n '^\[' rx.txton Linux/macOS to confirm it's not Windows-specific escaping\[,x\|\[a)Triaged automatically by wshm · This is an automated analysis, not a human review.
TechWizard9999 commentedon Oct 22, 2026
Hi @KuSh , Could you please assign it to me
Thanks!!
TechWizard9999 commentedon Oct 22, 2026
@KuSh Please review this as I have raised the PR