> >> If $PWD is actually in the path > > That can be in there literally? No, that's not what I meant. $PWD was shorthand for "the expanded name of the current directory" like you were generating with $(realpath).