env-cmd icon indicating copy to clipboard operation
env-cmd copied to clipboard

Parameter Expansion support

Open hpohlmeyer opened this issue 3 years ago • 1 comments

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:

VAR=World

package.json:

"echo": "env-cmd -x echo \"Hello ${VAR}!\""

Expected Output: Hello World!

Actual Output: Hello !

hpohlmeyer avatar Feb 02 '22 16:02 hpohlmeyer

alternatively you can use dotenvx for this. uses dotenv-expand under the hood.

motdotla avatar Feb 12 '24 05:02 motdotla