Skip Menu |

This queue is for tickets about the IPC-Run CPAN distribution.

Report information
The Basics
Id: 57393
Status: resolved
Priority: 0/
Queue: IPC-Run

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: caching of path searches
Date: Wed, 12 May 2010 08:06:16 +1000
To: bug-IPC-Run [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
In a test script I tried changing $PATH so as to exercise some code using IPC::Run with a program found or not found. I had to dig around to realize IPC::Run caches a found executable. I think there's probably no need to cache, or only as an option, instead just execlp each time. If caching then there should be some way to purge the cache, like the shell "rehash", for when you know or suspect the target might change, such as when setting a new $PATH.
On Tue May 11 18:06:47 2010, user42@zip.com.au wrote: Show quoted text
> In a test script I tried changing $PATH so as to exercise some code > using IPC::Run with a program found or not found. I had to dig around > to realize IPC::Run caches a found executable. > > I think there's probably no need to cache, or only as an option, instead > just execlp each time. If caching then there should be some way to > purge the cache, like the shell "rehash", for when you know or suspect > the target might change, such as when setting a new $PATH.
I've just hit this as well - it also seems to cache not finding an executable as well. So..., thanks for registering the bug - saved me time poking around, and I agree it would be useful to give control to the developer using this module. DavidJ