Say you have directory ~/mytool that softlinks to /usr/local/mytool. Then
cd mytool leaves your current directory as ~/mytool, which may cause scripts to behave incorrectly. Is there a way to avoid this behaviour?
With some googling, I see that you can achieve this as follows:
cd $1 ; cd `pwd -P`
Is there no switch to 'cd'? Environment variables?