Subject: Re: [ksh93-integration-discuss] Non-existent directories in $PATH and  
stat caching
--------

> The other day I was setting up my shell environment on a different 
> system, starting with copying over my .profile and .kshrc, along with
> a few other scripts.
> 
> Later I tried to run one of my scripts in a different window, but that 
> window's ksh93 couldn't find it, while other shells in my other windows
> could.  After digging a big, I realized that the one shell was started
> during the window of time where my .kshrc ( with my scripts directory 
> added to $PATH ) had been copied to the new system, but before the 
> scripts directory had been created.  Since the directory did not exist 
> at the time $PATH was set, ksh93 was not attempting to access it again.
> 

The standard says that the shell can cache lookups.

You can do
        PATH=$PATH
to cause the cache to be flushed.



David Korn
dgk at research.att.com

Reply via email to