We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8afea commit 9c54368Copy full SHA for 9c54368
src/shims/env.rs
@@ -15,8 +15,10 @@ pub struct EnvVars {
15
impl EnvVars {
16
pub(crate) fn init<'mir, 'tcx>(
17
ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>,
18
- excluded_env_vars: Vec<String>,
+ mut excluded_env_vars: Vec<String>,
19
) {
20
+ // Exclude TERM var to avoid calls to the file system
21
+ excluded_env_vars.push("TERM".to_owned());
22
if ecx.machine.communicate {
23
for (name, value) in std::env::vars() {
24
if !excluded_env_vars.contains(&name) {
0 commit comments