3 @@ -12340,8 +12340,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 @@ -12353,10 +12362,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);