Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14794 > unrolled thread

Re: [mapfile]: problem reentrance with normal file

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2018-11-12 08:55 -0500
Last post2018-11-12 08:55 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [mapfile]: problem reentrance with normal file Greg Wooledge <wooledg@eeg.ccf.org> - 2018-11-12 08:55 -0500

#14794 — Re: [mapfile]: problem reentrance with normal file

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2018-11-12 08:55 -0500
SubjectRe: [mapfile]: problem reentrance with normal file
Message-ID<mailman.3917.1542030958.1284.bug-bash@gnu.org>
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.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web