Open hpohlmeyer opened 2 years ago
Hi, I am trying to use env-cmd with parameter expansion to concatenate the variable with a string. Am I doing something wrong or is that currently impossible?
env-cmd
Here is an example:
.env:
VAR=World
package.json:
"echo": "env-cmd -x echo \"Hello ${VAR}!\""
Expected Output: Hello World!
Hello World!
Actual Output: Hello !
Hello !
alternatively you can use dotenvx for this. uses dotenv-expand under the hood.
dotenvx
Hi, I am trying to use
env-cmd
with parameter expansion to concatenate the variable with a string. Am I doing something wrong or is that currently impossible?Here is an example:
.env:
package.json:
Expected Output:
Hello World!
Actual Output:
Hello !