diff options
author | tjr <tjr@FreeBSD.org> | 2002-06-02 08:34:09 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-06-02 08:34:09 +0000 |
commit | 0930ee47eb7101dfdad2719e91488e3b5a122ecd (patch) | |
tree | 79a10eafca09de189e601d7dc77e6bf66f57a098 /bin | |
parent | 0a9f255d036d501db5a90855a6fc8b14c86b0435 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | bin/sh/histedit.c | 2 |
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; |