The proposed solution does not work when sourcing the file from another directly. For example, from /tmp I did source a eucarc and I got
$ echo $EUCA_KEY_DIR /tmp
The proposed solution does not work when sourcing the file from another directly. For example, from /tmp I did source a eucarc and I got
$ echo $EUCA_KEY_DIR
/tmp