On 6/19/20 8:51 PM, corr...@goncalo.pt wrote:
>
> When we rename the current working directory, $PWD doesn't get updated
> as it would as it would if we just did a simple "cd directory". 

Of course not. There is no mechanism to inform the shell that the file
system has changed from underneath it. The shell knows when it changes
its own working directory, and can adjust $PWD accordingly. In fact,
that is the only thing that changes $PWD.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to