Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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).

Replies are listed 'Best First'.
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?
Discipulus straberries portable edition
[Corion]: Discipulus: Haha ;) I hadn't made the connection to Strawberry Perl at all ;)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-01-20 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.