Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Issue with env variables set through dos batch

by ikegami (Pope)
on Oct 13, 2011 at 16:45 UTC ( #931315=note: print w/ replies, xml ) Need Help??


in reply to Re: Issue with env variables set through dos batch
in thread Issue with env variables set through dos batch

While environment variables are inherited from parent to child like in Linux, a batch files are run more like source foo.bat than cmd /c foo.bat when possible (when the parent is cmd).


Comment on Re^2: Issue with env variables set through dos batch
Select or Download Code
Re^3: Issue with env variables set through dos batch
by moritz (Cardinal) on Oct 13, 2011 at 17:08 UTC

      The parent is perl, which can't execute batch files, so a cmd is indeed launched here.

      I wasn't so much correcting you as explaining that the behaviour is different than explained when the batch file is run from the prompt.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-07-30 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (241 votes), past polls