BEGINLIBPATH, ENDLIBPATH and LIBPATHSTRICT are not inhertied on OS/2

This commit is contained in:
KO Myung-Hun 2015-06-03 15:27:32 +09:00
parent 645b537439
commit a041295dae
1 changed files with 9 additions and 0 deletions

9
var.c
View File

@ -1139,6 +1139,15 @@ makenv(void)
/* setstr can't fail here */
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);
}
if (l->flags & BF_STOPENV)