Return to env.c CVS log | Up to [local] / src / usr.bin / env |
version 1.12, 2006/05/28 05:29:54 | version 1.13, 2009/03/01 17:02:25 | ||
---|---|---|---|
|
|
||
argc -= optind; | argc -= optind; | ||
argv += optind; | argv += optind; | ||
for (; *argv && (p = strchr(*argv, '=')); ++argv) | for (; *argv && (p = strchr(*argv, '=')); ++argv) { | ||
if (setenv(*argv, ++p, 1) == -1) { | *p++ = '\0'; | ||
if (setenv(*argv, p, 1) == -1) { | |||
/* reuse 126, it matches the problem most */ | /* reuse 126, it matches the problem most */ | ||
exit(126); | exit(126); | ||
} | } | ||
} | |||
if (*argv) { | if (*argv) { | ||
/* | /* |