Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 16915
Status: resolved
Worked: 15 min
Priority: 0/
Queue: CPAN

People
Owner: bdfoy [...] cpan.org
Requestors: chris [...] prather.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.81
  • 1.82
Fixed in: (no value)



Subject: cpan command line script requires -i now
In CPAN-1.81 and CPAN-1.82, the cpan script seems to now require -i for install instead of the documented (and previous) behavior of defaulting to -i when no swtiches are passed. perigrin@Alice ~ $ cpan HTML::Prototype perigrin@Alice ~ $ Versus the previous behavior of perigrin@dhcp-stp-134-32 ~ $ cpan HTML::Prototype CPAN: Storable loaded ok Going to read /Users/perigrin/.cpan/Metadata ... This was seen on both SunOS 5.8 and OSX 10.4.3 (Darwin 8.3.0) running perl 5.6.1(sun) and 5.8.7(mac) I'm not sure if a Documentation patch or a code patch is in order.
Argh! You're right. The docs are right (I still want that default behavior), so I need to fix the code. I should have something for you by tonight. Sorry for the inconvenience.
I've uploaded cpan-1.06 which re-implements the default -i feature. When I rewrote the script, the big decision structure turned into a dispatch table. The processing in the if() was the thing that set -i if there were no other options and that special case didn't survive into the new design. Now it's back.