1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 19:56:17 +00:00

Merge pull request #2731 from thomasqueirozb/env_empty_name

env: don't panic when name is empty
This commit is contained in:
Michael Debertol 2021-11-02 21:33:42 +01:00 committed by GitHub
commit a05628f018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 3 deletions

View file

@ -108,6 +108,15 @@ fn test_ignore_environment() {
scene.ucmd().arg("-").run().no_stdout();
}
#[test]
fn test_empty_name() {
new_ucmd!()
.arg("-i")
.arg("=xyz")
.run()
.stderr_only("env: warning: no name specified for value 'xyz'");
}
#[test]
fn test_null_delimiter() {
let out = new_ucmd!()