Re: [exim-dev] Popping '.' from @INC

Góra strony
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
Dla: exim-dev
Temat: Re: [exim-dev] Popping '.' from @INC
Todd Rinaldo via Exim-dev <exim-dev@???> (Di 14 Feb 2017 19:36:01 CET):
..
> > But, that's basically the same what taint mode does, isn't it?
> > So, why not add -T to the #! line? This would give us @INC cleansing
> > *and* additional taint checks.
>
> As far as I know, -T does not remove support for relative paths. It just takes . off the end.


Yes, it strips off the dot, *except* you set it there by using -I. or
-Mlib=. on the command line. And it ignores any PERL5LIB, PERL5OPT
environment. The only chance to get it there is to call the interpreter
manually and use -I. or -Mlib=., where the dot is quite visible.

All other parts of the @INC are absolute, as far as I see and know.

--
Heiko