On Mon, Jul 20, 2009 at 5:46 AM, Chris F.A. Johnson <c...@freeshell.org>wrote:
> On Sun, 19 Jul 2009, Chet Ramey wrote: > > Chris F.A. Johnson wrote: >> >>> >>> mapfile callback code is executed in a subshell. >>> >> >> It's not. It's executed in the same context as an `eval' or a trap >> command. >> > > So it is. Great! I wonder what I was doing wrong before. IIRC The callback is executed before the assignment, so you cannot manipulate the line currently read with it.