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 dc4b8ac commit f00fd39Copy full SHA for f00fd39
src/shims/env.rs
@@ -18,14 +18,8 @@ pub struct EnvVars {
18
impl EnvVars {
19
pub(crate) fn init<'mir, 'tcx>(
20
ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>,
21
- mut excluded_env_vars: Vec<String>,
+ excluded_env_vars: Vec<String>,
22
) {
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
-
29
if ecx.machine.communicate {
30
for (name, value) in env::vars() {
31
if !excluded_env_vars.contains(&name) {
0 commit comments