On Jul 07 2023, Paul Smith wrote:

> Your _SHELL_ may know how you got there, because your shell is handling
> your "cd" operations and so it can keep track of this.  That's the PWD
> env var that Kaz discusses.  But other programs can't know this.

But other programs _can_ make use of PWD and keep maintaining it, just
like the shell will do if the incoming value of PWD still points to the
real cwd.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to