Merge pull request #3052 from dirkmueller/gzip_keep

Keep original file if -c or --stdout is given
This commit is contained in:
Nick Terrell authored and GitHub committed 2022-03-28 10:35:21 -07:00
commit f229daaf42
4 files changed
+12 -8

No files matched your search

+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