cc: [email protected]
Subject: Re: Re: [ast-developers] Crash: variable IFS not a real local clone  
within shell functions
--------

Here is a simpler fix for this bug.

================cut here=================
--- old/sh/init.c       Thu Aug  5 23:16:41 2010
+++ new/sh/init.c       Fri Oct  8 13:16:10 2010
@@ -1653,7 +1653,6 @@
        shp->var_base = shp->var_tree = inittree(shp,shtab_variables);
        SHLVL->nvalue.ip = &shlvl;
        ip->IFS_init.hdr.disc = &IFS_disc;
-       ip->IFS_init.hdr.nofree = 1;
        ip->PATH_init.disc = &RESTRICTED_disc;
        ip->PATH_init.nofree = 1;
        ip->FPATH_init.disc = &RESTRICTED_disc;
@@ -1709,6 +1708,7 @@
        ip->LANG_init.nofree = 1;
 #endif /* _hdr_locale */
        nv_stack(IFSNOD, &ip->IFS_init.hdr);
+       ip->IFS_init.hdr.nofree = 1;
        nv_stack(PATHNOD, &ip->PATH_init);
        nv_stack(FPATHNOD, &ip->FPATH_init);
        nv_stack(CDPNOD, &ip->CDPATH_init);
================cut here=================

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to