grobber has asked for the wisdom of the Perl Monks concerning the following question:
I have been trying to run installs without testing by setting the CPAN_OPTS environment variable as documented in the cpan manpages. The problem is that the contents of that variable seem to be appended rather than prepended to the rest of my arguments. The three commands${HOME}/perl5/bin/cpan version 1.64 calling Getopt::Std::getopts (vers +ion 1.12 [paranoid]), running under Perl version 5.28.1.
have exactly the same effect:cpan CPAN -T CPAN_OPTS="-T" cpan CPAN export CPAN_OPTS="-T" && cpan CPAN
Loading internal logger. Log::Log4perl recommended for better logging Reading '${HOME}/.cpan/Metadata' Database was generated on Thu, 02 Jan 2020 14:41:03 GMT CPAN is up to date (2.27). >(error): Could not expand [-T]. Check the module name. >(info): I can suggest names if you install one of Text::Levenshtein:: +XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Leve +nshtein::Damerau::PP >(info): and you provide the -x option on invocation. >(error): Skipping -T because I couldn't find a matching namespace.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how is the CPAN_OPTS environment variable supposed to work?
by 1nickt (Canon) on Jan 03, 2020 at 03:14 UTC | |
by marto (Cardinal) on Jan 03, 2020 at 09:04 UTC | |
by grobber (Novice) on Jan 03, 2020 at 20:36 UTC | |
by marto (Cardinal) on Jan 03, 2020 at 20:43 UTC |