plugin-foreign-env
plugin-foreign-env copied to clipboard
Fix inconsistency on env stderr output
It is possible for env to produce output on stderr.
I don't know the precise condition, but it is triggered by the Environment Modules Bash initialization script
previous_env
did not capture stderr while program_execution
does,
so there would be spurious diffs when env outputs to stderr.
This fixes that by capturing stderr in previous_env
as well.