in reply to Symbolic Link
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.
- doug
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Symbolic Link
by Anonymous Monk on May 21, 2009 at 05:29 UTC | |
by Anonymous Monk on May 21, 2009 at 09:17 UTC |