summaryrefslogtreecommitdiffstats
path: root/bin/sh/histedit.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-06-02 08:34:09 +0000
committertjr <tjr@FreeBSD.org>2002-06-02 08:34:09 +0000
commit0930ee47eb7101dfdad2719e91488e3b5a122ecd (patch)
tree79a10eafca09de189e601d7dc77e6bf66f57a098 /bin/sh/histedit.c
parent0a9f255d036d501db5a90855a6fc8b14c86b0435 (diff)
downloadFreeBSD-src-0930ee47eb7101dfdad2719e91488e3b5a122ecd.zip
FreeBSD-src-0930ee47eb7101dfdad2719e91488e3b5a122ecd.tar.gz
Fix typo causing ``fc -e'' to not work correctly. getopt() sets optarg,
not shoptarg.
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r--bin/sh/histedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c
index 2d922be..51e419c 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;
OpenPOWER on IntegriCloud