Hi,
I've a report[1] that the following code in ksh
function foo { SECONDS=0; }
x=$(foo)
cause a an error and makes the shell crashes within in next
few commands. There is also a patch done by Anders but
we're a bit unsure if this is the correct solution:
-----------------------------------------------------------------
--- src/cmd/ksh93/sh/subshell.c
+++ src/cmd/ksh93/sh/subshell.c 2009-05-12 23:48:47.000000000 +0200
@@ -236,7 +236,7 @@
mp->nvfun = np->nvfun;
mp->nvflag = np->nvflag;
if(nv_cover(mp))
- nv_putval(mp, np->nvalue.cp,0);
+ mp->nvalue.cp = np->nvalue.cp;
else
mp->nvalue.cp = np->nvalue.cp;
np->nvfun = 0;
-----------------------------------------------------------------
maybe there are other side effects by this change.
Werner
[1]: http://bugzilla.novell.com/show_bug.cgi?id=502622
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users