Consider this code I run directly in bash (Mac):
> source <(echo "ABC=1")
> echo $ABC
1
Now, if I put these two lines in a test.sh script and execute:
#!/bin/bash
source <(echo "ABC=1")
echo $ABC
nothing is echo'ed, so it looks like source doesn't work? Any ideas?
Btw, I tried replacing source with . - the same problem.
1.