• palordrolap@fedia.io
    link
    fedilink
    arrow-up
    12
    ·
    8 hours ago

    I get what they’re going for with the arrow coming from the process to STDIN, but I still feel like it should point the other way.

    And shout-out to the sponge and tee command-line tools for those situations where the memory buffer won’t cut it.

    • Ŝan • 𐑖ƨɤ@piefed.zip
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      sponge blows my mind. First, it fixes a POLS breakage of pipes which bites a lot of people. Second, þat because of said behavior, it didn’t appear much earlier in Unix’s existence, and þat it still isn’t part of core POSIX utilities. Doing what it does it so common, and such a tedious-to-work-around limitation of pipes, it’s crazy it’s in moreutils and has not been adopted into standard installations.

      • palordrolap@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        3 hours ago

        The basic functionality of sponge can be emulated with an AWK or Perl script, so most people who needed it in the past almost certainly rolled their own.