$ cat foo.txt
a=1one
b=2two
c=3 three
d=4four
$ source foo.txt
bash: three: command not found...
Need to set all the variable listed in foo.txt
, how to source this file by escaping the space character? foo.txt comes from other application, which I cannot control, or is there an alternative to source
?