These are chat archives for bkeepers/dotenv

5th
Feb 2016
David Slone
@dbslone
Feb 05 2016 21:38
i'm trying to use the dotenv cli to load my .env file but when I try to execute the command dotenv echo $MY_VARIABLE it doesn't return the variables value. Is there something I'm missing?
Brandon Keepers
@bkeepers
Feb 05 2016 22:44
@dbslone I think $MY_VARIABLE gets evaluated by bash before the command is called

$ MY_VARIABLE=foobar echo $MY_VARIABLE

$ # no output

for example :point_up:
$ MY_VARIABLE=foobar sh -c "echo \$MY_VARIABLE"
foobar
$ dotenv sh -c "echo \$MY_VARIABLE"
foobar
@dbslone: I confirmed that works with dotenv :point_up: