3 @@ -12429,8 +12429,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 @@ -12442,10 +12451,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);