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 scriptprevious_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.
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 whileprogram_execution
does, so there would be spurious diffs when env outputs to stderr.This fixes that by capturing stderr in
previous_env
as well.