Fix typo causing ``fc -e'' to not work correctly. getopt() sets optarg,
not shoptarg.
This commit is contained in:
parent
0a9f255d03
commit
0930ee47eb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user