Project

General

Profile

Bug #1337 ยป env.diff

thomas.nikolajsen, 04/17/2009 11:35 AM

View differences:

usr.bin/env/env.c
usage();
}
for (argv += optind; *argv && (p = strchr(*argv, '=')); ++argv) {
if (setenv(*argv, ++p, 1) == -1)
err(1, "setenv: cannot set %s=%s", *argv, p);
*p = '\0';
if (setenv(*argv, p + 1, 1) == -1)
err(1, "setenv: cannot set %s=%s", *argv, p + 1);
*p = '=';
}
if (*argv) {
    (1-1/1)