diff options
-rw-r--r-- | lash.c | 1 | ||||
-rw-r--r-- | sh.c | 1 | ||||
-rw-r--r-- | shell/lash.c | 1 |
3 files changed, 3 insertions, 0 deletions
@@ -426,6 +426,7 @@ static int builtin_export(struct child_prog *child) | |||
426 | for (e = environ; *e; e++) { | 426 | for (e = environ; *e; e++) { |
427 | printf( "%s\n", *e); | 427 | printf( "%s\n", *e); |
428 | } | 428 | } |
429 | return 0; | ||
429 | } | 430 | } |
430 | res = putenv(v); | 431 | res = putenv(v); |
431 | if (res) | 432 | if (res) |
@@ -426,6 +426,7 @@ static int builtin_export(struct child_prog *child) | |||
426 | for (e = environ; *e; e++) { | 426 | for (e = environ; *e; e++) { |
427 | printf( "%s\n", *e); | 427 | printf( "%s\n", *e); |
428 | } | 428 | } |
429 | return 0; | ||
429 | } | 430 | } |
430 | res = putenv(v); | 431 | res = putenv(v); |
431 | if (res) | 432 | if (res) |
diff --git a/shell/lash.c b/shell/lash.c index 28015cbb3..89325b63d 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -426,6 +426,7 @@ static int builtin_export(struct child_prog *child) | |||
426 | for (e = environ; *e; e++) { | 426 | for (e = environ; *e; e++) { |
427 | printf( "%s\n", *e); | 427 | printf( "%s\n", *e); |
428 | } | 428 | } |
429 | return 0; | ||
429 | } | 430 | } |
430 | res = putenv(v); | 431 | res = putenv(v); |
431 | if (res) | 432 | if (res) |