avoid excluding TERM env var
This commit is contained in:
parent
dc4b8ac2e6
commit
f00fd3990b
1 changed files with 1 additions and 7 deletions
|
|
@ -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<String>,
|
||||
excluded_env_vars: Vec<String>,
|
||||
) {
|
||||
// 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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue