• NewPerspective@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    What about processes that terminate before writing the whole thing? You can’t protect against everything. Blame other processes all you want but the language spec allows for confusion.

    • AMDmi3@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      9 months ago

      You just check the exit code, no? The other process may fail while generating syntactically correct data too, regardless of format.