• T. Hex@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Because now touch does two things.

    Without touch, we could “just” use the shell to create files.

    : > foo.txt
    
    • deegeese@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Touch does one thing from a “contract” perspective:

      Ensure the timestamp of <file> is <now>