Re: mapfile usage

2009-02-22 Thread Chet Ramey
Stephane CHAZELAS wrote: > 2009-02-4, 19:59(+00), Stephane CHAZELAS: > [...] >> Also, it looks like it should guard against >> seq 5 | mapfile -C echo -c0 >> >> That command above cannot be interrupted with > [...] > > Note that that minor bug is still in 4.0-release. Thanks; it's fixed now. >

Re: mapfile usage

2009-02-22 Thread Stephane CHAZELAS
2009-02-4, 19:59(+00), Stephane CHAZELAS: [...] > Also, it looks like it should guard against > seq 5 | mapfile -C echo -c0 > > That command above cannot be interrupted with [...] Note that that minor bug is still in 4.0-release. I still don't get the rationale behind that builtin. Does that co

Re: mapfile usage

2009-02-04 Thread Alex Reed
On Feb 4, 2:59 pm, Stephane CHAZELAS wrote: > 2009-02-4, 10:50(-08), Alex Reed: > > > Can someone please explain how 'mapfile' should be used?  I am trying: > > > cat file.txt | mapfile > > for i in ${MAPFILE};do echo $i; done > > > and I see no output. > > mapfile would be run in a subshell. > >

Re: mapfile usage

2009-02-04 Thread Stephane CHAZELAS
2009-02-4, 10:50(-08), Alex Reed: > Can someone please explain how 'mapfile' should be used? I am trying: > > cat file.txt | mapfile > for i in ${MAPFILE};do echo $i; done > > and I see no output. mapfile would be run in a subshell. Try mapfile < file.txt Note that the for loop syntax above is