oh-my-fish / plugin-foreign-env

Run foreign bash scripts and capture exported environment variables
MIT License
221 stars 15 forks source link

Fix inconsistency on env stderr output #21

Open edlanglois opened 5 years ago

edlanglois commented 5 years ago

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.