> 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.

I almost forgot to reply back. This worked fine and is part of Rakubrew since 
version 28: https://github.com/Raku/App-Rakubrew/commit/
39ca617b01e91cd197ba3b9c3d298d3154ff03a1

Thank you for your support and help in solving this!

Patrick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to