1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

Fix 'env -' case

This commit is contained in:
Nikita Ofitserov 2015-05-27 00:51:14 +03:00
parent c32e21fc01
commit abd3e1e8e4

2
src/env/env.rs vendored
View file

@ -116,7 +116,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
} }
} }
} else if opt.starts_with("-") { } else if opt.starts_with("-") {
if opt.len() == 0 { if opt.len() == 1 {
// implies -i and stop parsing opts // implies -i and stop parsing opts
wait_cmd = true; wait_cmd = true;
opts.ignore_env = true; opts.ignore_env = true;