Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 surveying the Monastery: (12)
As of 2015-07-03 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls