Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: [OT] Invoking Perl via batchfile: ampersand in PATH

by syphilis (Archbishop)
on Nov 02, 2015 at 09:51 UTC ( [id://1146690]=note: print w/replies, xml ) Need Help??


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,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1146690]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found