@[email protected] to [email protected] • 19 hours agozcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !message-square16fedilinkarrow-up155arrow-down18file-text
arrow-up147arrow-down1message-squarezcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !@[email protected] to [email protected] • 19 hours agomessage-square16fedilinkfile-text
minus-square@[email protected]linkfedilink8•7 hours agoHow do you propose zcat tell the difference between an uncompressed file and a corrupted compressed file? Or are you saying if it doesn’t recognize it as compressed, just dump the source file regardless? Because that could be annoying.
minus-square@[email protected]OPlinkfedilink1•6 hours agoEven a corrupt compressed files has a very different structure relative to plain text. “file” already has the code to detect exactly which. Still, failing on corrupted compression instead of failing on plaintext would be an improvement.
How do you propose zcat tell the difference between an uncompressed file and a corrupted compressed file? Or are you saying if it doesn’t recognize it as compressed, just dump the source file regardless? Because that could be annoying.
Even a corrupt compressed files has a very different structure relative to plain text. “file” already has the code to detect exactly which.
Still, failing on corrupted compression instead of failing on plaintext would be an improvement.