Open
Description
Bug description
Command
yarn run bazelisk query 'kind("rule_1|rule_2")'
What is the current behavior?
Yarn uses puka
for shell quoting. puka
seems to convert the arguments to
the following string:
console.log(puka.sh`query 'kind("pkg_npm|ng_package")'`);
query ^"kind^(\^"pkg_npm^|ng_package\^"^)^"
This causes Git Bash to break (when used as as shell), because caret cannot be used for
escaping. It will only work if the command is spawned in plain cmd
where caret can escape.
What is the expected behavior?
The command should work as expected without yarn run
.
e.g. running `./node_modules/.bin/bazelisk query 'kind("rule_1|rule_2")' works.
Steps to Reproduce
- Create an empty project
- Add
@bazel/bazelisk
as dependency - Run the command shared above (on a Windows machine in Git Bash)
- Verify that it works expected if the command is run outside of Yarn
Environment
- Node Version:
12.13.0
- Yarn v1 Version:
1.12.1
- OS and version: Windows 10
Metadata
Metadata
Assignees
Labels
No labels