1
Fork 0

also use 'env' for printing unsetting

This commit is contained in:
Ralf Jung 2023-08-03 12:14:58 +02:00
parent 53a29e0e60
commit fc75f723f6
2 changed files with 4 additions and 8 deletions

View file

@ -544,7 +544,7 @@ fn debug_print() {
let mut command_with_removed_env = Command::new("boring-name");
command_with_removed_env.env_remove("FOO").env_remove("BAR");
assert_eq!(format!("{command_with_removed_env:?}"), r#"unset BAR FOO && "boring-name""#);
assert_eq!(format!("{command_with_removed_env:?}"), r#"env -u BAR -u FOO "boring-name""#);
assert_eq!(
format!("{command_with_removed_env:#?}"),
format!(