
17 Sep
2011
17 Sep
'11
6:27 a.m.
I have a command that has output like: VAR1=A VAR2=B VAR3=C I want to execute that command in a shell script such that those statements are execute into my environment, so $VAR1 is now equal to 'A'. I can just put the output in a temporary file and then source that file, but is there a more direct way? Thanks James