As a context. I have a folder which I have symlinked into my $HOME directory.
~> ls -s /var/www/to_link "$HOME/linked"
I cd into "$HOME/linked"
So, by default, pwd shows the current directory including symlinks. In this case, it would be /home/christopher/linked. If I want to have it return /var/www/to_link I have to type pwd -P. I generally find this second form more useful than the first, but I would like both to be available.
- Is it possible to have
pwddefault to include the-Pflag, and then use another flag to include symlinks? So basically,pwdwould return/var/www/to_linkandpwd -X(or some other flag) would return the original/home/christopher/linked.