mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tests/misc/coreutils.sh: Fail with invalid binary name (#10258)
This commit is contained in:
@@ -59,9 +59,12 @@ fn main() {
|
||||
|
||||
let util_name = if let Some(&util) = matched_util {
|
||||
Some(OsString::from(util))
|
||||
} else {
|
||||
} else if binary_as_util.ends_with("utils") || binary_as_util.ends_with("box") {
|
||||
// todo: Remove support of "*box" from binary
|
||||
uucore::set_utility_is_second_arg();
|
||||
args.next()
|
||||
} else {
|
||||
validation::not_found(&OsString::from(binary_as_util));
|
||||
};
|
||||
|
||||
// 0th argument equals util name?
|
||||
|
||||
Reference in New Issue
Block a user