Repository navigation
du: accept --exclude, --exclude-from and --files0-from values starting with '-' - #16990
emirmrkaljevic wants to merge 2 commits into
Conversation
|
|
0eddc66 to
3691a7a
Compare
|
Thanks, it failed only on Windows because du prints |
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
| .stdout_contains("keep") | ||
| .stdout_does_not_contain("-skip"); | ||
|
|
||
| ts.ucmd() |
There was a problem hiding this comment.
this is the same arg as -X, so this block doesn't add much. Could be removed, no?
Fixes #16989.
--exclude,-X/--exclude-fromand--files0-fromnow accept a value that starts with-, sodu -a --exclude -skip direxcludesdir/-skipanddu --files0-from -listreads the file-list, like GNU du 9.12. Before, clap treated the value as an option and du exited with 1.--max-depthand--thresholdalready allow this.test_du_option_values_starting_with_hyphencovers all three options.Found with behave.