mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
shred: use exact if size is given
This commit is contained in:
parent
f10059db02
commit
4b09b917cd
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
.get_one::<String>(options::SIZE)
|
.get_one::<String>(options::SIZE)
|
||||||
.map(|s| s.to_string());
|
.map(|s| s.to_string());
|
||||||
let size = get_size(size_arg);
|
let size = get_size(size_arg);
|
||||||
let exact = matches.get_flag(options::EXACT) && size.is_none(); // if -s is given, ignore -x
|
let exact = matches.get_flag(options::EXACT) || size.is_some();
|
||||||
let zero = matches.get_flag(options::ZERO);
|
let zero = matches.get_flag(options::ZERO);
|
||||||
let verbose = matches.get_flag(options::VERBOSE);
|
let verbose = matches.get_flag(options::VERBOSE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue