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:
commit
a05628f018
2 changed files with 42 additions and 3 deletions
|
@ -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!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue