I am trying to source the output of a process substitution, and I'm not getting what I expect:
$ foo=bar
$ . <(echo 'foo=BAR')
$ echo $foo
bar
I would have expected BAR
to be the output. Can someone tell me what I'm missing?
I am on a Mac running High Sierra (MacOs 10.13.6). I am using GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.5.0).