oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.15k stars 2.77k forks source link

Shell completions doesn't support script name with colon inside #10391

Open CzBiX opened 6 months ago

CzBiX commented 6 months ago

What version of Bun is running?

1.1.4+fbe2fe0c3

What platform is your computer?

No response

What steps can reproduce the bug?

  1. Add a script in package.json, like: "test:build": "true"
  2. Type bun run and press Tab.

What is the expected behavior?

$ bun run
-- scripts --
test:build
build

What do you see instead?

$ bun run
-- scripts --
test          -- build
build

Additional information

I'm using zsh.

ragokan commented 1 month ago

Same issue, looks like it does not happen for npm and yarn.

image

Yarn:

image

I created a pull request to fix: https://github.com/oven-sh/bun/pull/13927