Skip to content

Bug: rtk rewrite breaks 2>&1 shell redirection #346

@pszymkowiak

Description

@pszymkowiak

Description

rtk rewrite inserts spaces into 2>&1, breaking shell redirection.

Reproduction

rtk rewrite "cargo test 2>&1 | head"
# Output: rtk cargo test 2> & 1 | head
# Expected: rtk cargo test 2>&1 | head

Impact

Any command using 2>&1 piped to another command gets broken silently. The rewritten command will fail or behave unexpectedly.

Metadata

Metadata

Assignees

No one assigned

    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