1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Do not default to emacs if explicitly turned off (re: 1375cda9)

When a user invokes 'ksh +o emacs' they should not land in the
emacs line editor, as they explicitly asked not to have it. So
default to no editor mode in that case.
This commit is contained in:
Martijn Dekker 2022-07-02 05:53:58 +02:00
parent 372d704bfb
commit 9f78a4d5a7

View file

@ -349,7 +349,7 @@ int sh_main(int ac, char *av[], Shinit_f userinit)
#if SHOPT_VSH
&& !sh_isoption(SH_VI)
#endif /* SHOPT_VSH */
)
&& !is_option(&sh.offoptions,SH_EMACS))
sh_onoption(SH_EMACS);
#endif /* SHOPT_ESH */
}