Search code examples
perlcygwincpanstrawberry-perl

Missing "cpan>" prompt when running the CPAN shell in a Strawberry Perl environment under Cygwin


I've encountered a strange prompt problem when running the CPAN shell in a Strawberry Perl environment under Cygwin.

When launching the CPAN using perl -MCPAN -eshell I get the following output:

cpan shell -- CPAN exploration and modules installation (v1.9600)
Enter 'h' for help.

Please not that the standard cpan> prompt is missing. Why is that and how do I fix it?

When typing quit\n I get the prompt but after I issue the command:

quit
cpan> Lockfile removed.

Solution

  • This is a basic problem running interactive windows programs in a cygwin terminal window. I don't have a handy cygwin installation to try it on, but try either

    cygstart perl -MCPAN -eshell
    

    or install conin and do

    conin perl -MCPAN -eshell