-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Description
While trying to reproduce #8913, I noticed that we fail if one of the block size environment variables is zero, whereas GNU du
uses the default block size in such a case.
$ DU_BLOCK_SIZE=0 cargo run -q du README.md
du: invalid --block-size argument '???BUG'
$ BLOCK_SIZE=0 cargo run -q du README.md
du: invalid --block-size argument '???BUG'
$ BLOCKSIZE=0 cargo run -q du README.md
du: invalid --block-size argument '???BUG'
$ DU_BLOCK_SIZE=0 du README.md
12 README.md
$ BLOCK_SIZE=0 du README.md
12 README.md
$ BLOCKSIZE=0 du README.md
12 README.md
$ du README.md
12 README.md