On 4/16/24 2:46 AM, Carl Edquist wrote:

But the shell is pretty slow when you ask it to shovel data around like this.  The 'read' builtin, for instance, cautiously does read(2) calls of a single byte at a time.

It has to do it that way to find the delimiter on a non-seekable file
descriptor, since it has to leave everything it didn't consume available
on stdin.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


  • Re: Examples o... Zachary Santer
    • Re: Examp... Chet Ramey
      • Re: E... Zachary Santer
        • R... Chet Ramey
          • ... Zachary Santer
        • R... Zachary Santer
          • ... Carl Edquist
          • ... Andreas Schwab
          • ... Zachary Santer
          • ... Carl Edquist
          • ... Chet Ramey
          • ... Martin D Kealey
          • ... Chet Ramey
          • ... Martin D Kealey
          • ... Chet Ramey
          • ... Carl Edquist
          • ... Martin D Kealey
          • ... Carl Edquist via Bug reports for the GNU Bourne Again SHell
          • ... Martin D Kealey
          • ... Carl Edquist via Bug reports for the GNU Bourne Again SHell
          • ... Zachary Santer

Reply via email to