Exclude TERM env var by default
This commit is contained in:
parent
ee8afead51
commit
9c54368cca
1 changed files with 3 additions and 1 deletions
|
|
@ -15,8 +15,10 @@ pub struct EnvVars {
|
|||
impl EnvVars {
|
||||
pub(crate) fn init<'mir, 'tcx>(
|
||||
ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>,
|
||||
excluded_env_vars: Vec<String>,
|
||||
mut excluded_env_vars: Vec<String>,
|
||||
) {
|
||||
// Exclude TERM var to avoid calls to the file system
|
||||
excluded_env_vars.push("TERM".to_owned());
|
||||
if ecx.machine.communicate {
|
||||
for (name, value) in std::env::vars() {
|
||||
if !excluded_env_vars.contains(&name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue