diff --git a/src/env/env.rs b/src/env/env.rs index a4d8c4417..89fc38718 100644 --- a/src/env/env.rs +++ b/src/env/env.rs @@ -116,7 +116,7 @@ pub fn uumain(args: Vec) -> i32 { } } } else if opt.starts_with("-") { - if opt.len() == 0 { + if opt.len() == 1 { // implies -i and stop parsing opts wait_cmd = true; opts.ignore_env = true;