--- a/shell/ash.c
+++ b/shell/ash.c
-@@ -11875,8 +11875,17 @@
+@@ -11909,8 +11909,17 @@ exportcmd(int argc ATTRIBUTE_UNUSED, cha
const char *p;
char **aptr;
int flag = argv[0][0] == 'r'? VREADONLY : VEXPORT;
aptr = argptr;
name = *aptr;
if (name) {
-@@ -11888,10 +11897,12 @@
+@@ -11922,10 +11931,12 @@ exportcmd(int argc ATTRIBUTE_UNUSED, cha
vp = *findvar(hashvar(name), name);
if (vp) {
vp->flags |= flag;