From 0930ee47eb7101dfdad2719e91488e3b5a122ecd Mon Sep 17 00:00:00 2001 From: tjr Date: Sun, 2 Jun 2002 08:34:09 +0000 Subject: [PATCH] Fix typo causing ``fc -e'' to not work correctly. getopt() sets optarg, not shoptarg. --- bin/sh/histedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 2d922be7d43..51e419cf0b3 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -211,7 +211,7 @@ histcmd(int argc, char **argv) (ch = getopt(argc, argv, ":e:lnrs")) != -1) switch ((char)ch) { case 'e': - editor = shoptarg; + editor = optarg; break; case 'l': lflg = 1; -- 2.45.2