diff options
-rw-r--r-- | usr.bin/env/env.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/env/env.c b/usr.bin/env/env.c index ebfdc98..a7eb536 100644 --- a/usr.bin/env/env.c +++ b/usr.bin/env/env.c @@ -89,7 +89,8 @@ main(int argc, char **argv) if (env_verbosity) fprintf(stderr, "#env clearing environ\n"); } - for (argv += optind; *argv && (p = strchr(*argv, '=')); ++argv) { + for (argv += optind; *argv && (**argv != '/') && (p = strchr(*argv, + '=')); ++argv) { if (env_verbosity) fprintf(stderr, "#env setenv:\t%s\n", *argv); (void)setenv(*argv, ++p, 1); |