well, there it is then.. its not a 'child' its a peer..
Flexvault is mistaken. It's a child, and it does inherit environment variables. Here are a couple of linux scripts that demonstrate this. First, /tmp/myenv just prints any environment variables that have 'MY' in the name:
#!/usr/bin/perl
print "$_=>$ENV{$_}\n" for grep /MY/, sort keys %ENV;
Then the main script, which 'opens' myenv:
#!/usr/bin/perl
$ENV{MYA} = 'a';
$ENV{MYB} = 'b';
$ENV{C} = 'c';
open(CMD, "/tmp/myenv 2>&1 |") or die "open: $!\n";
while (<CMD>) {
chomp;
print "got: <$_>\n";
}
Running this gives:
got: <MYA=>a>
got: <MYB=>b>
Dave.