in reply to [OT] Invoking Perl via batchfile: ampersand in PATH [Solved]

I think you just need to replace (in potableshell.bat's "set PATH=..." line) %PATH% with "%PATH%".

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: [OT] Invoking Perl via batchfile: ampersand in PATH
by Athanasius (Archbishop) on Nov 02, 2015 at 09:59 UTC

    Hello syphilis,

    Thanks. Actually putting double quotes around just %PATH% works, but produces a different warning:

    'cmd' is not recognized as an internal or external command, operable program or batch file.

    I have no idea why. But putting double quotes around the whole assignment works with no warning! See my reply to Discipulus, above.

    Thanks,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,