Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14794
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: [mapfile]: problem reentrance with normal file |
| Date | 2018-11-12 08:55 -0500 |
| Message-ID | <mailman.3917.1542030958.1284.bug-bash@gnu.org> (permalink) |
| References | <CACXkx7VreuDnWv8EWvCAiU0E09RRMSgXkabFP5UkBPSgzcVGRA@mail.gmail.com> |
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.
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: [mapfile]: problem reentrance with normal file Greg Wooledge <wooledg@eeg.ccf.org> - 2018-11-12 08:55 -0500
csiph-web