Describe the bug
zstd won't remove the file after compression when --rm argument is passed.
To Reproduce
Steps to reproduce the behavior:
zstd --rm -f -T0 -8qc dir/file -o dir/file.zst
ls dir/file
file is still present
If --rm is placed as a last argument, for example zstd -T0 -8qc --rm dir/file -o dir/file.zst, removal works as expected.
Expected behavior
File is removed even when --rm is not last argument.
Desktop (please complete the following information):
- OS: Debian 12 (bookworm) and Debian 13 (trixie)
- Version
1.5.4+dfsg2-5 and 1.5.5+dfsg2-1
Describe the bug
zstd won't remove the file after compression when
--rmargument is passed.To Reproduce
Steps to reproduce the behavior:
zstd --rm -f -T0 -8qc dir/file -o dir/file.zstls dir/filefileis still presentIf
--rmis placed as a last argument, for examplezstd -T0 -8qc --rm dir/file -o dir/file.zst, removal works as expected.Expected behavior
File is removed even when
--rmis not last argument.Desktop (please complete the following information):
1.5.4+dfsg2-5and1.5.5+dfsg2-1