-
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
Hello, thank you for a great lib 🤘
I'm facing a problem related to environment variables expansion on Windows and Linux (Github Actions)
I use env-cmd
in package.json
scripts.
.env
VAR=Hello World
package.json
{
"name": "env-cmd-bug",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"unescaped": "env-cmd -x --verbose echo $VAR",
"escaped": "env-cmd -x --verbose echo \\$VAR"
},
"dependencies": {
"env-cmd": "^10.1.0"
}
}
Escaping the $
sign works for Linux, but fails on Windows.
Outputs:
m-spyratos and StefanMorar