On Thu, Feb 24, 2022 at 12:07 PM Patrick Böker <patrick.boe...@posteo.de> wrote:
> Did I understand correctly, that you also have no better idea than > heuristically trying to bring ENV back to its original state right before > doing "exec"? > It's the right idea. Also no heuristic needed: my $ldlibpthname = $Config::Config{ldlibpthname}; my $path_sep = $Config::Config{path_sep}; $ENV{$ldlibpthname} =~ s/^ \Q$ENV{PAR_TEMP}\E $path_sep? //x; should restore the original LD_LIBRARY_PATH etc. Cheers, Roderich