ksh OLDPWD Environment Variable

The OLDPWD environment variable contains the full path name of the previous working directory. It is initially equal to $PWD (see ksh PWD Environment Variable).