Tagged Questions
1
vote
3answers
769 views
How do I set an environment variable on the command line and have it appear in commands?
If I run
export TEST=foo
echo $TEST
It outputs foo.
If I run
TEST=foo echo $TEST
It does not. How can I get this functionality without using export or a script?