bug-bash
[Top][All Lists]
Advanced

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

Re: [mapfile]: problem reentrance with normal file


From: Greg Wooledge
Subject: Re: [mapfile]: problem reentrance with normal file
Date: Mon, 12 Nov 2018 08:55:17 -0500
User-agent: NeoMutt/20170113 (1.7.2)

On Sun, Nov 11, 2018 at 09:32:31PM +0100, Didou Serge wrote:
> When use mapfile from normal file that call function that use mapfile, the
> first mapfile lost data.
> 
> Repeat-By:
> I create 3 functions:
> ww(){ echo "$@" | mapfile -C yy -c 1 -t TT ; }

In this function, mapfile is being executed in a subshell.  It will
read the input, and then when the subshell terminates, the array will
be discarded.



reply via email to

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