Re: Mapfile callback access to current line

2011-01-15 Thread Chet Ramey
On 1/15/11 12:28 AM, Chris F.A. Johnson wrote: > On Mon, 17 May 2010, Chet Ramey wrote: > >> On 4/15/10 11:56 PM, DennisW wrote: >>> Mapfile would be that much more powerful if the callback function had >>> access to the current line. Is there any chance this might be added in >>> the future? >> >

Re: Mapfile callback access to current line

2011-01-14 Thread Chris F.A. Johnson
On Mon, 17 May 2010, Chet Ramey wrote: On 4/15/10 11:56 PM, DennisW wrote: Mapfile would be that much more powerful if the callback function had access to the current line. Is there any chance this might be added in the future? Sure, there's a chance. What would be the most useful form? A s

Re: Mapfile callback access to current line

2010-05-17 Thread Chet Ramey
On 4/15/10 11:56 PM, DennisW wrote: > Mapfile would be that much more powerful if the callback function had > access to the current line. Is there any chance this might be added in > the future? Sure, there's a chance. What would be the most useful form? A shell variable that lives for the durat

Re: Mapfile callback access to current line

2010-05-04 Thread pk
DennisW wrote: > Mapfile would be that much more powerful if the callback function had > access to the current line. Is there any chance this might be added in > the future? Can't answer directly on this, but it looks like the gateway between this group and the mailing list hasn't worked for a l

Re: mapfile callback

2009-07-19 Thread Chris F.A. Johnson
On Mon, 20 Jul 2009, Pierre Gaston wrote: On Mon, Jul 20, 2009 at 5:46 AM, Chris F.A. Johnson 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

Re: mapfile callback

2009-07-19 Thread Pierre Gaston
On Mon, Jul 20, 2009 at 5:46 AM, Chris F.A. Johnson 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

Re: mapfile callback

2009-07-19 Thread Chris F.A. Johnson
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. -- Chris F.A. Johnson

Re: mapfile callback

2009-07-19 Thread Chet Ramey
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. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.e