in reply to Re^4: Can I do this ???
in thread Can I do this ???

Very true, and I should have made that point clear.

What I meant to demonstrate is that a "typical" windows batch mode programming style (well, what I saw when I was in an environment where I had to care about those scripts) allows, even encourages, modifying the "parent" process from things that are called.

--MidLifeXis

Replies are listed 'Best First'.
Re^6: Can I do this ???
by BrowserUk (Patriarch) on Jan 22, 2009 at 16:09 UTC
      And it's not so different from the *nix shell mechanism of somekey=somevalue command.

      On all Unix shells I know, the caller has influence on whether somekey would end up in his/her environment, not (like in Windows Batch) the callee. For instance, if I call from bash a script like this:

      source gurgle.bash
      no child is born and the environment changes will be reflected in my environment. If I call it like this:
      gurgle.bash
      or
      bash gurgle.bash
      I do get a child and my environment stays unpolluted.

      -- 
      Ronald Fischer <ynnor@mm.st>