[Top][All Lists]

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

Re: [mapfile]: problem reentrance with normal file

From: Chet Ramey
Subject: Re: [mapfile]: problem reentrance with normal file
Date: Mon, 12 Nov 2018 13:05:58 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 11/12/18 10:48 AM, Didou Serge wrote:
> Ok, in this case, this should not work either:
> mapfile -C xx -c 1 UU  < <( echo -e "Premiere ligne" A{1..45} "\nDeuxieme
> ligne" B{1..45} "\nTroisieme ligne" C{1..45})
> But, this form work fine.

Because the read function underlying mapfile notes that the file descriptor
is not seekable and reads only a single line at a time rather than a full
buffer of data.


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

reply via email to

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