Suppose that I have this script
export.bash:
#! /usr/bin/env bash
export VAR=\"HELLO, VARIABLE\"
When I execute th
Found an interesting and neat way to export environment variables from a file:
in env.vars:
foo=test
test script:
eval `cat env.vars`
echo $foo # => test
sh -c 'echo $foo' # =>
export eval `cat env.vars`
echo $foo # => test
sh -c 'echo $foo' # => test
# a better one
export `cat env.vars`
echo $foo # => test
sh -c 'echo $foo' # => test