Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
package.json
{
"scripts": {
"test": "printf '%s' '\\\\' | od -c"
}
}
Using npm run
$ npm run test
> test
> printf '%s' '\\' | od -c
0000000 \
0000001
Using git-bash
$ printf '%s' '\\' | od -c
0000000 \ \
0000002
Expected Behavior
$ npm run test
> test
> printf '%s' '\\' | od -c
0000000 \ \
0000002
In Linux (Ubuntu 24.04.2 LTS) this works as expected
Steps To Reproduce
See Current Behavior section
Environment
- npm: 11.11.1
- Node.js: v24.14.0
- OS Name: Windows 11 Pro
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
package.json
Using npm run
Using git-bash
Expected Behavior
In Linux (Ubuntu 24.04.2 LTS) this works as expected
Steps To Reproduce
See Current Behavior section
Environment