2015-02-06 10:23 GMT-02:00 Paulo César Pereira de Andrade
<paulo.cesar.pereira.de.andr...@gmail.com>:

This also fixes the leak:

---8<---
--- ksh-20120801/src/cmd/ksh93/bltins/typeset.c.orig    2015-02-05
17:53:47.126072019 -0200
+++ ksh-20120801/src/cmd/ksh93/bltins/typeset.c    2015-02-05
17:53:50.133069136 -0200
@@ -1215,7 +1215,7 @@ static int unall(int argc, char **argv,
                 np = sh_fsearch(shp,name,nflag?HASH_NOSCOPE:0);
             if(!np)
 #endif /* SHOPT_NAMESPACE */
-            np=nv_open(name,troot,NV_NOADD|nflag);
+            np=nv_search(name,troot,NV_NOADD|nflag);
         }
         else
         {
---8<---

But also causes way too much test failures. I tested some of them
manually, and weirdly, they work if running only the chunk that
the tests claim to fail.

---8<---
    append.sh[50]: index array append to scalar fails
    append.sh[78]: compound append to index array not working
    append.sh[114]: append (b=c xxxxx) to index array not working

    arith.sh[338]: zero filled fields not preserving leading zeros with let
    arith.sh[549]: a[0] not 1
    arith.sh[563]: (a[0]+a[1])!=1000

    arrays.sh[84]: number of elements of y is not 6
    arrays.sh[87]: string length of unset element is not 0
    arrays.sh[106]: number of elements of left in variable foo is not 0
    arrays.sh[114]: number of elements of left in variable foo again is not 0
    arrays.sh[134]: number of elements of x is not 2
---8<---

way too many extra errrors follow :(

Thanks,
Paulo
_______________________________________________
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to