I don't know how to get perl to do that, but I can with bash. How about a kludge like
perl -e 'system "cd -P ./cs_envs && echo \$PWD";'
which resolves the symbolic link, and this
perl -e 'system "cd -L ./cs_envs && echo \$PWD";
which doesn't.
BTW: ./cs_envs is a symlink in my home directory. In the first one is shows the real (resolved) path, and the second one it shows the logical (unresolved) path.
- dougIn reply to Re: Symbolic Link
by doug
in thread Symbolic Link
by rahulgupta70
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |