in reply to Re^3: Surprising behavior of Cwd module on Unix with symlinks
in thread Surprising behavior of Cwd module on Unix with symlinks
The portability problem with $ENV{PWD} is that it assumes Unix. `pwd` also assumes Unix. The OP said "though I could replace the Cwd::cwd() calls with `pwd` (for Unix only), I'd prefer a more portable solution."
In addition, $PWD isn't a bashism. csh and ksh also populate it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Surprising behavior of Cwd module on Unix with symlinks
by ikegami (Patriarch) on Feb 09, 2011 at 15:22 UTC |