From f00fd3990b5016bbfbbecf65d8f6bb40ca2c861a Mon Sep 17 00:00:00 2001 From: Christian Poveda Date: Fri, 27 Dec 2019 08:37:52 -0500 Subject: [PATCH] avoid excluding TERM env var --- src/shims/env.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/shims/env.rs b/src/shims/env.rs index 1e655ca821d8..cb47e2d79fef 100644 --- a/src/shims/env.rs +++ b/src/shims/env.rs @@ -18,14 +18,8 @@ pub struct EnvVars { impl EnvVars { pub(crate) fn init<'mir, 'tcx>( ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>, - mut excluded_env_vars: Vec, + excluded_env_vars: Vec, ) { - // FIXME: this can be removed when we fix the behavior of the `close` shim for macos. - if ecx.tcx.sess.target.target.target_os.to_lowercase() != "linux" { - // Exclude `TERM` var to avoid terminfo trying to open the termcap file. - excluded_env_vars.push("TERM".to_owned()); - } - if ecx.machine.communicate { for (name, value) in env::vars() { if !excluded_env_vars.contains(&name) {