cdesktopenv/src/cmd/ksh93/include
Martijn Dekker b509e92241 edit: do not enable multiline mode with no editor active
If neither gmacs/emacs nor vi are active, the multiline mode should
not be enabled even if the multiline option is on. Doing so can
cause inconsistent behaviour, particularly in multibyte locales
where, if the shell is compiled with SHOPT_RAWONLY (as is default),
the no-editor mode is actually handled by vi.c.

Also, the new --histreedit and --histverify options only work in
the emacs or vi editors, or in no-editor mode when handled by vi.
Which means they cannot ever work if neither emacs or vi were
compiled in (i.e. SHOPT_ESH and SHOPT_VSH were both disabled).
In that case, there's no point in compiling in those options.
Come to think of it, the same applies to the multiline option.

All changed files:
- Update SHOPT_ESH/SHOPT_VSH preprocessor directives as per above.

src/cmd/ksh93/include/defs.h,
src/cmd/ksh93/include/shell.h:
- Move definitions of history expansion-related options to shell.h,
  which is where all the other shell options are defined.
2022-01-12 20:39:05 +00:00
..
argnod.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
builtins.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
defs.h edit: do not enable multiline mode with no editor active 2022-01-12 20:39:05 +00:00
edit.h edit: do not enable multiline mode with no editor active 2022-01-12 20:39:05 +00:00
fault.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
fcin.h INIT: remove proto, ratz (re: 46593a89, 6137b99a); major cleanup 2021-12-24 07:05:22 +00:00
history.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
io.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
jobs.h Fix various typos, man page issues and improve the documentation (#415) 2022-01-07 16:17:55 +00:00
lexstates.h INIT: remove proto, ratz (re: 46593a89, 6137b99a); major cleanup 2021-12-24 07:05:22 +00:00
name.h Fix multiple bugs when using 'alias -p' to print aliases (#398) 2021-12-27 03:49:06 +00:00
national.h INIT: remove proto, ratz (re: 46593a89, 6137b99a); major cleanup 2021-12-24 07:05:22 +00:00
nval.h INIT: remove proto, ratz (re: 46593a89, 6137b99a); major cleanup 2021-12-24 07:05:22 +00:00
path.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
regress.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
shell.h edit: do not enable multiline mode with no editor active 2022-01-12 20:39:05 +00:00
shlex.h Fix various typos, man page issues and improve the documentation (#415) 2022-01-07 16:17:55 +00:00
shnodes.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
shtable.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
streval.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
terminal.h Allow ksh to compile on Haiku; implement SIGKILLTHR support (#408) 2022-01-07 16:16:42 +00:00
test.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
timeout.h Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
ulimit.h Add three options to 'ulimit' (#406) 2021-12-28 22:02:20 +00:00
variables.h [shp cleanup 01..20] all the rest (re: 2d3ec8b6) 2022-01-07 16:16:31 +00:00
version.h Expose --histreedit and --histverify options (re: 921bbcae) 2022-01-12 20:38:30 +00:00