What I\'m trying to do is find the current working directory and save it into a variable, so that I can run export PATH=$PATH:currentdir+somethingelse. I\'m not
export PATH=$PATH:currentdir+somethingelse
for a relative answer, use .
.
test with:
$ myDir=. $ ls $myDir $ cd / $ ls $myDir
The first ls will show you everything in the current directory, the second will show you everything in the root directory (/).
ls
/