Re: [PATCH] Improved LINENO support

2010-11-27 Thread Harald van Dijk
On 12/11/10 22:29, Jilles Tjoelker wrote: So some more ideas: A per-command LINENO does not require adding the number to all of the node types. Only node types that are commands that perform expansions need it: NCMD, NREDIR, NBACKGND, NSUBSHELL, NFOR, NCASE. This makes sense, and I've tried th

Re: trap bug in recent versions of dash

2010-11-27 Thread Herbert Xu
On Wed, Aug 11, 2010 at 08:06:16AM +, Guido Berhoerster wrote: > Hello, > > with the latest git version of dash trap actions are not > evaluated in the context of a function. > > The following script demonstrates the bug: > 8< > read_timeout () { > saved_traps="$(trap)" > trap

Re: trap bug in recent versions of dash

2010-11-27 Thread Herbert Xu
On Sun, Aug 22, 2010 at 10:32:27PM +, Jilles Tjoelker wrote: > > diff --git a/src/eval.c b/src/eval.c > index d5e5c95..e484bec 100644 > --- a/src/eval.c > +++ b/src/eval.c > @@ -307,9 +307,9 @@ setstatus: > break; > } > out: > - if ((checkexit & exitstatus) || > -