commit | 9f739445cd3deddd0343c3a8d5a981ede26bef30 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sat Dec 16 23:49:13 2006 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sat Dec 16 23:49:13 2006 +0000 |
tree | 6dc013e44d2281eb1e6f61c4bca1ae7546001f79 | |
parent | a597aaddfa76d589d3e1a37b1f1c3401c2decffd [diff] [blame] |
inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]
diff --git a/coreutils/env.c b/coreutils/env.c index 2ce99b0..e4cad27 100644 --- a/coreutils/env.c +++ b/coreutils/env.c
@@ -58,7 +58,7 @@ opt = getopt32(argc, argv, "+iu:", &unset_env); argv += optind; - if (*argv && (argv[0][0] == '-') && !argv[0][1]) { + if (*argv && LONE_DASH(argv[0])) { opt |= 1; ++argv; }