Skip to content

nr strips "-p" from command args #332

@FelipeSharkao

Description

@FelipeSharkao

Describe the bug

When passing arguments to the command with nr, all instances of -p will be stripped, no matter the position.

Reproduction

https://github.com/FelipeSharkao/nr-repro

System Info

System:
    OS: Linux 6.19 EndeavourOS
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 2.32 GB / 15.41 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 24.4.0 - /home/felipe/.asdf/installs/nodejs/24.4.0/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 11.4.2 - /home/felipe/.asdf/plugins/nodejs/shims/npm
    pnpm: 10.33.0 - /home/felipe/.bun/bin/pnpm
    bun: 1.3.11 - /usr/bin/bun
  Browsers:
    Chromium: 146.0.7680.80

Used Package Manager

bun

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions