BEGINLIBPATH, ENDLIBPATH and LIBPATHSTRICT are not inhertied on OS/2
This commit is contained in:
9
var.c
9
var.c
@ -1139,6 +1139,15 @@ makenv(void)
|
|||||||
/* setstr can't fail here */
|
/* setstr can't fail here */
|
||||||
setstr(vp, val, KSH_RETURN_ERROR);
|
setstr(vp, val, KSH_RETURN_ERROR);
|
||||||
}
|
}
|
||||||
|
#ifdef __OS2__
|
||||||
|
/*
|
||||||
|
* On OS/2, BEGINLIBPATH, ENDLIBPATH and LIBPATHSTRICT are
|
||||||
|
* special variables, and are not inherited.
|
||||||
|
*/
|
||||||
|
if (strcmp(vp->name, "BEGINLIBPATH") &&
|
||||||
|
strcmp(vp->name, "ENDLIBPATH") &&
|
||||||
|
strcmp(vp->name, "LIBPATHSTRICT"))
|
||||||
|
#endif
|
||||||
XPput(denv, vp->val.s);
|
XPput(denv, vp->val.s);
|
||||||
}
|
}
|
||||||
if (l->flags & BF_STOPENV)
|
if (l->flags & BF_STOPENV)
|
||||||
|
Reference in New Issue
Block a user