I saw this post after my "pwd -P" suggestion
use the posix "cd -P" for this
On Tue, 16 Mar 2010 13:47:57 -0400 Brian Utterback wrote:
> To make this even simpler:
> joshi{blu}237:; uname -a
> SunOS joshi 5.11 snv_122 sun4u sparc SUNW,Sun-Fire-280R
> joshi{blu}245:; ksh
> $ cd /bin
> $ cd ../lib/firefox
> ksh: ../lib/firefox: not found
> $ ls -ld ../lib/firefox
> drwxr-xr-x 13 root bin 34 Aug 28 2009 ../lib/firefox
> $ pwd
> /bin
> $ /bin/pwd
> /usr/bin
> $
> So the problem is that ksh and ksh93 keep track of the "user" view of
> the cwd, and so ../lib means /lib and not /usr/lib as you would suppose.