[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

From: Chet Ramey
Subject: Re: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?
Date: Sun, 9 May 2021 20:11:24 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1

On 5/7/21 8:35 PM, Koichi Murase wrote:

Ah, I see it was based on the fact that there have been no bug

That't my best metric.

Actually, I'm wondering in what situation we can
usefully specify the `-C callback' option because it seems like we can
anytime process blocks of elements after the entire array is loaded.

`mapfile' came as part of contributions associated with the bash debugger.
Maybe take a look there to see how it uses -C?

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]