I'm trying to get [GNU parallel](https://www.gnu.org/software/parallel/) to read in a file and load BASH variables from it and then perform some action on them.

For example:

```
ls -1 build*/*.properties | parallel source {}; echo "var set to: $foo";

```

Where each of the \*.properties files is of the form:

```
foo=bar
var=blah

```

However, when I try either using "source" or the "." to load the variables in the file as Bash variables, setting the variables from the file doesn't appear to work.

```
$ ls -1 build*/*.properties | parallel source {} ; echo "variable set to $foo";
variable set to

```

Can anyone tell me what I'm doing wrong here? I know there must be a simple way to do this.