Skip to content

Trouble running xargs as second bash command. #439

Closed

Description

@gradha

After configuring rtk tried doing some changes and claude wanted to run a command in the style find path | xargs grep , and the grep was failing trying to look up presumably compressed folder names/paths. Unfortunately I didn't grab a screenshot and had to reset the machine, so all I can give you is a poor witness report. rtk init --show is all green, so presumably claude knew about prefixing rtk in commands on top of having it as a hook.

Activity

  1. gradha commented on Mar 11, 2026

    @gradha
    Author

    Does't look like it's very effective:

    Image Image
  2. self-assigned this
    on Mar 13, 2026
  3. pszymkowiak commented on Mar 13, 2026

    @pszymkowiak
    Collaborator

    Fix in PR #563 — the rewrite engine now skips rewriting find/fd when followed by a pipe (|). This preserves native one-per-line output that pipe consumers like xargs, grep, wc expect.

    find without a pipe is still rewritten to rtk find (savings preserved).

  4. aeppling commented on Apr 2, 2026

    @aeppling
    Contributor

    Should be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2-importantDevrait être fixé bientôtbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions