diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 938df284a06..37b62cef574 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -559,6 +559,13 @@ bindcmd(int argc, char **argv) fclose(out); + if (argc > 1 && argv[1][0] == '-' && + memchr("ve", argv[1][1], 2) != NULL) { + Vflag = argv[1][1] == 'v'; + Eflag = !Vflag; + histedit(); + } + INTON; return ret;