Open b12k opened 2 years ago
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-cmd
package.json
.env
VAR=Hello World
{ "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:
Ubuntu
Windows
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
inpackage.json
scripts..env
package.json
Escaping the
$
sign works for Linux, but fails on Windows.Outputs:
Ubuntu
Windows