> I for one don't see a general interest in knowing ones parents potentially
> faked wd.

Many things can be faked by the parent. One could check if getcwd() and
getenv("PWD") resolves to the same directory if this is a concern.

Based on the fact that other shells have a different behavior I was curious if
there was a reason to keep it this way or if it was just historical stuff from
pdksh.

> You can find out your wd by saner means.

I'd love to hear it if you don't mind, getcwd(3) returns resolved symlinks.

ksh keeps track of the symlinked folders I assume for the purpose of ease
of use. If a client application wants to keep the same context I think it's
useful to have access to it.

Reply via email to