Skip to content

Commit f00fd39

Browse files
committed
avoid excluding TERM env var
1 parent dc4b8ac commit f00fd39

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/shims/env.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@ pub struct EnvVars {
1818
impl EnvVars {
1919
pub(crate) fn init<'mir, 'tcx>(
2020
ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>,
21-
mut excluded_env_vars: Vec<String>,
21+
excluded_env_vars: Vec<String>,
2222
) {
23-
// FIXME: this can be removed when we fix the behavior of the `close` shim for macos.
24-
if ecx.tcx.sess.target.target.target_os.to_lowercase() != "linux" {
25-
// Exclude `TERM` var to avoid terminfo trying to open the termcap file.
26-
excluded_env_vars.push("TERM".to_owned());
27-
}
28-
2923
if ecx.machine.communicate {
3024
for (name, value) in env::vars() {
3125
if !excluded_env_vars.contains(&name) {

0 commit comments

Comments
 (0)