diff --git a/usr.bin/env/env.1 b/usr.bin/env/env.1 index 9316175e1154..8a1467aa96b0 100644 --- a/usr.bin/env/env.1 +++ b/usr.bin/env/env.1 @@ -445,11 +445,7 @@ utility does not handle values of .Ar utility which have an equals sign .Pq Ql = -in their name (for obvious reasons), unless the -.Ar utility -name begins with a -.Ql / -character. +in their name, for obvious reasons. .Pp The .Nm diff --git a/usr.bin/env/env.c b/usr.bin/env/env.c index 56c671b2afa8..815976fe5f7a 100644 --- a/usr.bin/env/env.c +++ b/usr.bin/env/env.c @@ -102,8 +102,7 @@ main(int argc, char **argv) if (env_verbosity) fprintf(stderr, "#env clearing environ\n"); } - for (argv += optind; *argv && (**argv != '/') && (p = strchr(*argv, - '=')); ++argv) { + for (argv += optind; *argv && (p = strchr(*argv, '=')); ++argv) { if (env_verbosity) fprintf(stderr, "#env setenv:\t%s\n", *argv); (void)setenv(*argv, ++p, 1);