dirpath function not working
ptica opened this issue · comments
as cd
dirname $1`` echoes the target dir on bash for me
Strange ... why does it echo the target dir? On which system / bash version are you?
ah! its probably cos I'm using CDPATH:
If a non-empty directory name from CDPATH is used, or if - is the first argument,
and the directory change is successful, the absolute pathname of the new working
directory is written to the standard output.
Interesting, i did not even know of this feature. Thanks for the fix!