Skip to content

Commit 9c54368

Browse files
committed
Exclude TERM env var by default
1 parent ee8afea commit 9c54368

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shims/env.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ pub struct EnvVars {
1515
impl EnvVars {
1616
pub(crate) fn init<'mir, 'tcx>(
1717
ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>,
18-
excluded_env_vars: Vec<String>,
18+
mut excluded_env_vars: Vec<String>,
1919
) {
20+
// Exclude TERM var to avoid calls to the file system
21+
excluded_env_vars.push("TERM".to_owned());
2022
if ecx.machine.communicate {
2123
for (name, value) in std::env::vars() {
2224
if !excluded_env_vars.contains(&name) {

0 commit comments

Comments
 (0)