Hi,
I'm a user of pdksh on some older systems and mksh on newer ones. I just
realized a difference between the two, that I'd like to understand
better to find if there's a way to make mksh work like pdksh.
this is about editing multi-line commands. example:
# echo "
> foo
> bar"
foo
bar
# history
on pdksh, I get an output showing one multi-line entry:
[...]
16 echo "
foo
bar"
and allows editing the complete, multi-line command using:
# fc -e ${VISUAL:-${EDITOR:-vi}} 16
on mksh, on the contrary, each line of the command has a different entry
in the history:
[...]
26 echo "
27 foo
28 bar"
and I can modify individual lines, but not the complete, multi-line command.
is there a way to make mksh behave like pdksh, joining the multi-line
command into one history entry, allowing the modification of the whole
command?
Regards
Stefan