Revision f66724c9 bsd-user/main.c
b/bsd-user/main.c | ||
---|---|---|
795 | 795 |
r = argv[optind++]; |
796 | 796 |
if (envlist_setenv(envlist, r) != 0) |
797 | 797 |
usage(); |
798 |
} else if (!strcmp(r, "ignore-environment")) { |
|
799 |
envlist_free(envlist); |
|
800 |
if ((envlist = envlist_create()) == NULL) { |
|
801 |
(void) fprintf(stderr, "Unable to allocate envlist\n"); |
|
802 |
exit(1); |
|
803 |
} |
|
798 | 804 |
} else if (!strcmp(r, "U")) { |
799 | 805 |
r = argv[optind++]; |
800 | 806 |
if (envlist_unsetenv(envlist, r) != 0) |
Also available in: Unified diff