• merc@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    One reason is that tar supports both traditional style args “tar tf <filename.tar>” and unix-style args “tar -tf <filename.tar>” but there are subtle differences in how they work.

    • Ethan@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      12 hours ago

      Literally the only time I’ve ever run into that is when I was trying to manipulate the path it extracted to. In 99% of cases I’m doing tf, xf, or cf plus flags for the compression type, etc, and those differences are irrelevant.

      • merc@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        11 hours ago

        I used something recently where it wasn’t possible to use the traditional-style args. I think it was a “diff”, which meant I needed a “-f”. It wasn’t a big deal, but, occasionally it does happen.