develooper Front page | perl.perl5.porters | Postings from May 2001

Re: Relocatable perl

Thread Previous | Thread Next
Jarkko Hietaniemi
May 3, 2001 11:27
Re: Relocatable perl
Message ID:
> How thoughtful of them... I would have thought that a program with all
> its files being fully relocatable would be a good thing.  Of course
> it's true that a file may have many names, thanks to link(), but
> argv[0] being often just the executable name without the path is
> somewhat silly.

Another fringe case people sometimes mention when explaining the
non-existence of such an API is: "What if someone/the process itself
has removed its executable and the executable does no more exist?"
Well, tough.  That's what the errno is for, right?  (Not to mention
that in many systems trying to remove a busy executable will fail.)

*If* there were such an API I could see some value in providing the
whole path of exec()ed executables (and their argvs) backwards in time
starting from the init process (or its moral equivalent).  But enough
pipe dreaming...

$jhi++; #
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About