cc: [email protected] Subject: Re: Re: [ast-developers] AT&T Software Technology ast alpha software download update --------
> ksh tst1.sh
> tst1.sh: line 3: .sh.type.com.gelifesciences.tst1: no parent
>
> Irek
Try this patch and see if it fixed the types problem in namespaces.
=====================cut here======================
--- old/sh/xec.c Mon Aug 12 13:22:06 2013
+++ new/sh/xec.c Thu Aug 15 18:01:37 2013
@@ -1124,11 +1124,20 @@
#if SHOPT_NAMESPACE
if(shp->namespace)
{
+ char *sp,*xp;
if(!shp->strbuf2)
shp->strbuf2 = sfstropen();
sfprintf(shp->strbuf2,"%s%s%c",NV_CLASS,nv_name(shp->namespace),0);
shp->prefix =
strdup(sfstruse(shp->strbuf2));
-
nv_open(shp->prefix,shp->var_base,NV_VARNAME);
+ xp =
shp->prefix+strlen(NV_CLASS);
+ for(sp=xp+1;sp;)
+ {
+ if(sp =
strchr(sp,'.'))
+
*sp = 0;
+
nv_open(shp->prefix,shp->var_base,NV_VARNAME);
+ if(sp)
+
*sp++ = '.';
+ }
}
else
#endif /* SHOPT_NAMESPACE */
=====================cut here======================
David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers
