mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
du: threshold fix comment
This commit is contained in:
parent
02f00e2c6b
commit
e5a4c393af
1 changed files with 2 additions and 0 deletions
|
@ -913,6 +913,8 @@ impl FromStr for Threshold {
|
||||||
let size = parse_size(&s[offset..])?;
|
let size = parse_size(&s[offset..])?;
|
||||||
|
|
||||||
if s.starts_with('-') {
|
if s.starts_with('-') {
|
||||||
|
// Threshold of '-0' excludes everything besides 0 sized entries
|
||||||
|
// GNU's du threats '-0' as an invalid argument
|
||||||
if size == 0 {
|
if size == 0 {
|
||||||
return Err(ParseSizeError::ParseFailure(s.to_string()));
|
return Err(ParseSizeError::ParseFailure(s.to_string()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue