making a shell 'source' file use relative paths
Posted
by Lucas Meijer
on Stack Overflow
See other posts from Stack Overflow
or by Lucas Meijer
Published on 2010-04-27T09:36:59Z
Indexed on
2010/04/27
9:43 UTC
Read the original article
Hit count: 254
shell
I have the file: myvars
MONO_PREFIX=/opt/mono
export MONO_PATH=$MONO_PREFIX/lib/mono/2.0
I "use" it, by calling:
source myvars
I want to change /opt/mono
to be relative to the location of the myvars file instead of being absolute. How could I do this?
© Stack Overflow or respective owner