3 @@ -12344,8 +12344,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 @@ -12357,10 +12366,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);