I can invoke a Rake task and set a single environmental variable like this:
$ ONE=1 rake temp:both
But how do I set two environmental variables?
This doesn't work:
$ ONE=1 TWO=2 rake temp:both
This works, but is confusing to read:
$ ONE=1 rake temp:both TWO=2
How can I pass more than one env before the call to rake
?
ONE=1 TWO=2 ruby -e 'puts ENV["ONE"]; puts ENV["TWO"]'
works for me (also withrake
), in bash and in zsh (gnome-term). – Neuromusculartemp:both
do? – Ungula