mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +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)
|
||||
.map(|s| s.to_string());
|
||||
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 verbose = matches.get_flag(options::VERBOSE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue