Skip Menu |

This queue is for tickets about the Portable-Dist CPAN distribution.

Report information
The Basics
Id: 65313
Status: resolved
Priority: 0/
Queue: Portable-Dist

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

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



Subject: pl2bat scripts installed in site/ don't work
When installing modules like App::ack or App::cpanminus that include scripts, the scripts are installed in [strawberry]\perl\site\bin\ and converted to batch files with pl2bat. The batch files then look for perl.exe in %~dp0 (the directory of the batch file), which doesn't work. It seems like the pl2bat code only expects to deal with scripts installed in the core bin dir, not the site one.
To clarify "doesn't work": running e.g. "cpanm Foo::Bar" will fail with '"C:\Blah\Blah\perl\site\bin\perl.exe" is not recognized as an internal or external command, operable program or batch file' because the path to perl.exe is incorrect.
should be fixed now