# New Ticket Created by Edsger Lin # Please include the string: [perl #123569] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=123569 >
Rakudo star uses `perl6 "%~dp0\%0" %*` to wrap Perl 6 script in batch files. However, PowerShell expand `%0` to pathname+filename, while cmd.exe expand `%0` to just the filename. For example, in `C:\rakudo\bin\panda.bat` this expand to `C:\rakudo\bin\C:\rakudo\bin\panda.bat` while in cmd.exe this expand to `C:\rakudo\bin\\panda`. So `panda` can work in cmd.exe but a PowerShell will show following error message: Could not open `C:\rakudo\bin\C:\rakudo\bin\panda.bat`. Failed to open file: no such file or directory I searched MSDN for a while and find a better special variable `%~dpn0` to use, which could correctly expand to `C:\rakudo\bin\panda` under the 2 command prompt. Sorry I do not know how to send you guys a patch. You can just type :s/dp0\\%0/dpn0 in that file in Vim to replace it
