Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 102819
Status: resolved
Priority: 0/
Queue: CPAN

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.14



Subject: If -j is given cpan does not enter the shell
If I run "cpan" I get the cpan shell. If I run "cpan -j ~/.cpan/CPAN/MyConfig.pm" I get "Nothing to install!". I'd like to be able to enter the shell even when I supply my own configuration file. using cpan script version 1.63, CPAN.pm version 2.10"
I've add a -s switch to explicitly ask to drop into the shell. To make it work with only the -j option I'd have to rearrange how most of the option processing works since -i is the default option after the setup is done. I think that's still the best default. It may take a bit for this to be merged into master.
On Tue Mar 17 06:46:16 2015, BDFOY wrote: Show quoted text
> I've add a -s switch to explicitly ask to drop into the shell. To make > it work with only the -j option I'd have to rearrange how most of the > option processing works since -i is the default option after the setup > is done. I think that's still the best default. > > It may take a bit for this to be merged into master.
I am not sure I understand this. Does -i gets turned on if there is -j on the command line? Otherwise I am not sure why would the cases in which I used cpan differ. In both cases CPAN was already configured.
Subject: Re: [rt.cpan.org #102819] If -j is given cpan does not enter the shell
Date: Tue, 17 Mar 2015 06:59:29 -0400
To: "bug-CPAN [...] rt.cpan.org" <bug-CPAN [...] rt.cpan.org>
From: brian d foy <bdfoy [...] cpan.org>
-i is turned on if there are any arguments but one of the arguments does not invoke a CPAN.pm option. It does not look at the argument list after options such as -j. To do that I'd have to rearrange quite a bit.
For me don't bother. I think I found a work around and even the bug I was hunting.
837ea4b6947bd827c0de177eb54f0aebe59d42ef was the commit that introduced -s. Release 2.14 was the next non-trial release. Thanks!