Mailing List Archive

PERL_USE_UNSAFE_INC
Hi,

The perlrun documentation for PERL_USE_UNSAFE_INC begins with:

<quote>
If perl has been configured to not have the current directory in @INC by
default, ....
</quote>

To me, this implies that it is possible to configure perl such that @INC
*does* include the current directory.

Is such a thing possible ?
If so, how ?

With perl-5.35.4 on Ubuntu, I tried adding -DPERL_USE_UNSAFE_INC=1 to the
configure args, but this still resulted in an @INC that did not contain ".".

Cheers,
Rob
Re: PERL_USE_UNSAFE_INC [ In reply to ]
On Sat, 25 Sep 2021 13:45:10 +1000
sisyphus <sisyphus359@gmail.com> wrote:

> Hi,
>
> The perlrun documentation for PERL_USE_UNSAFE_INC begins with:
>
> <quote>
> If perl has been configured to not have the current directory in @INC by
> default, ....
> </quote>
>
> To me, this implies that it is possible to configure perl such that @INC
> *does* include the current directory.
>
> Is such a thing possible ?
> If so, how ?
>
> With perl-5.35.4 on Ubuntu, I tried adding -DPERL_USE_UNSAFE_INC=1 to the
> configure args, but this still resulted in an @INC that did not contain ".".
>
> Cheers,
> Rob

-Udefault_inc_excludes_dot, it's documented in INSTALL.
Re: PERL_USE_UNSAFE_INC [ In reply to ]
Aaaah ... thank you !!
(I did try checking INSTALL ... but only to the extent of doing a
case-insensitive search for the string "unsafe_inc".)

Cheers,
Rob

On Sat, Sep 25, 2021 at 2:02 PM Tomasz Konojacki <me@xenu.pl> wrote:

> On Sat, 25 Sep 2021 13:45:10 +1000
> sisyphus <sisyphus359@gmail.com> wrote:
>
> > Hi,
> >
> > The perlrun documentation for PERL_USE_UNSAFE_INC begins with:
> >
> > <quote>
> > If perl has been configured to not have the current directory in @INC by
> > default, ....
> > </quote>
> >
> > To me, this implies that it is possible to configure perl such that @INC
> > *does* include the current directory.
> >
> > Is such a thing possible ?
> > If so, how ?
> >
> > With perl-5.35.4 on Ubuntu, I tried adding -DPERL_USE_UNSAFE_INC=1 to the
> > configure args, but this still resulted in an @INC that did not contain
> ".".
> >
> > Cheers,
> > Rob
>
> -Udefault_inc_excludes_dot, it's documented in INSTALL.
>
>