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
You can use shell in-build variable PWD, like this:
PWD
export PATH=$PATH:$PWD+somethingelse