3 @@ -12351,8 +12351,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 @@ -12364,10 +12373,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);