Merge pull request #3052 from dirkmueller/gzip_keep

Keep original file if -c or --stdout is given
This commit is contained in:
Nick Terrell
2022-03-28 10:35:21 -07:00
committed by GitHub
4 changed files with 12 additions and 8 deletions
+4
View File
@@ -24,6 +24,10 @@ zstd -c file | zstd -t
zstd --stdout file | zstd -t
println bob | zstd | zstd -t
# Test keeping input file when compressing to stdout in gzip mode
$ZSTD_SYMLINK_DIR/gzip -c file | zstd -t ; test -f file
$ZSTD_SYMLINK_DIR/gzip --stdout file | zstd -t ; test -f file
# Test --rm
cp file file-rm
zstd --rm file-rm; zstd -t file-rm.zst