Kind of a tricky one to name this...
Basically I have a program which when run prints on STDOUT a set of shell variables:
$ ./settings SETTING_ONE="this is setting one" SETTING_TWO="This is the second setting" ANOTHER_SETTING="This is another setting".
I want to run this from within a shell script as if the STDOUT were being evaluated with
I'd like to do something like ...
... but of course that doesn't work.
I know I could do:
./settings >/tmp/file source /tmp/file
but I really don't want to do that.