bug-bash
[Top][All Lists]
Advanced

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

Re: mapfile callback


From: Pierre Gaston
Subject: Re: mapfile callback
Date: Mon, 20 Jul 2009 09:14:51 +0300

On Mon, Jul 20, 2009 at 5:46 AM, Chris F.A. Johnson <cfaj@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.


reply via email to

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