# get the "output" environment from the script into a hash my %envhash = map { chomp; split( /=/, $_, 2 ) } `bash.script`; # now get the "ambient environment" and delete that from the hash: for ( `bash -c env` ) { ( my $var, undef ) = split( /=/ ); delete $envhash{$var}; }
In reply to Re: Re: Re: simulating bash
by graff
in thread simulating bash
by agaffney
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |