$ cd /
$ PWD=. bash -c pwd
.
$ PWD=. ksh -c pwd
/

Posix says that pwd shouldn't return the filenames dot or dot-dot.
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pwd.html

Reply via email to