There I said it !

  • Malfeasant@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    3 hours ago

    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.

    • interdimensionalmeme@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      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.