From ca8e9f2edf22b507593fe9c0b5a2b8f9fad7d37e Mon Sep 17 00:00:00 2001 From: tjr Date: Thu, 25 Jul 2002 10:47:38 +0000 Subject: Set opterr to zero to avoid duplicate warnings from getopt(3) for unknown options. --- bin/sh/var.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/sh/var.c') diff --git a/bin/sh/var.c b/bin/sh/var.c index a4241af..b3be70a 100644 --- a/bin/sh/var.c +++ b/bin/sh/var.c @@ -543,6 +543,7 @@ exportcmd(int argc, char **argv) cmdname = argv[0]; optreset = optind = 1; + opterr = 0; values = 0; while ((ch = getopt(argc, argv, "p")) != -1) { switch (ch) { -- cgit v1.1