diff options
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r-- | bin/sh/histedit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 6cd9fe4..d081d05 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -208,6 +208,7 @@ histcmd(int argc, char **argv) error("missing history argument"); optreset = 1; optind = 1; /* initialize getopt */ + opterr = 0; while (not_fcnumber(argv[optind]) && (ch = getopt(argc, argv, ":e:lnrs")) != -1) switch ((char)ch) { |