This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
79001
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
shay [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Critical
Broken in:
1.9800
Fixed in:
(no value)



Subject: cpan shell exits with error "Unknown shell command 'cpan[1]>'"
I have added my installed perl's bin\ folder to my PATH and am trying to start the cpan shell by simply typing "cpan" in a standard cmd.exe command prompt on Windows 7. The cpan shell immediately exits with an error if I try to enter it with my current directory being on the C: drive: ########## C:\>cpan Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9800) Enter 'h' for help. Unknown shell command 'cpan[1]>'. Type ? for help. Terminal does not support GetHistory. Lockfile removed. C:\> ########## If I switch to seemingly any other drive letter then it works fine: ########## C:\>K: K:\>cpan Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9800) Enter 'h' for help. cpan[1]> ########## This is most unfortunate since I normally work on the C: drive :-(
Can you start the shell from C: with perl -MCPAN -eshell ?
On Thu Aug 16 01:28:32 2012, ANDK wrote:
Show quoted text
> Can you start the shell from C: with > > perl -MCPAN -eshell > > ?
No, that has exactly the same result -- works fine from K: but exits with the same error from C:
On Thu Aug 16 15:53:52 2012, SHAY wrote:
Show quoted text
> On Thu Aug 16 01:28:32 2012, ANDK wrote:
> > Can you start the shell from C: with > > > > perl -MCPAN -eshell > > > > ?
> > No, that has exactly the same result -- works fine from K: but exits > with the same error from C:
I've just discovered that I have the same problem with CPANPLUS, so I've reported it there too (see CPAN RT#79064), and I'm now thinking the problem is really elsewhere (Term::ReadLine?), but if a fix is made elsewhere then you'll perhaps want to add a prerequisite minimum version on the updated dependent.
Now fixed in blead by commit 4cc026083a to Term::ReadLine. Please see #79064 for the gory details.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.