3 @@ -12159,8 +12159,17 @@ exportcmd(int argc UNUSED_PARAM, char **
6 int flag = argv[0][0] == 'r' ? VREADONLY : VEXPORT;
9 + while ((nopt = nextopt("np"))) {
17 - if (nextopt("p") != 'p') {
22 @@ -12172,10 +12181,12 @@ exportcmd(int argc UNUSED_PARAM, char **
23 vp = *findvar(hashvar(name), name);
30 setvar(name, p, flag);
31 + setvar(name, p, flag & mask);
32 } while ((name = *++aptr) != NULL);