aurora / rmate

Remote TextMate 2 implemented as shell script
GNU General Public License v3.0
886 stars 123 forks source link

dirpath function not working #30

Closed ptica closed 9 years ago

ptica commented 9 years ago

as cddirname $1`` echoes the target dir on bash for me

aurora commented 9 years ago

Strange ... why does it echo the target dir? On which system / bash version are you?

ptica commented 9 years ago

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.
aurora commented 9 years ago

Interesting, i did not even know of this feature. Thanks for the fix!