[Bug 10976] vi may lose ESCape key input
bugzilla at busybox.net
bugzilla at busybox.net
Fri May 25 15:07:52 UTC 2018
https://bugs.busybox.net/show_bug.cgi?id=10976
--- Comment #7 from Denys Vlasenko <vda.linux at googlemail.com> ---
(In reply to Mike Berger from comment #6)
> No, it's more than the entire sequence being ignored - read_key() silently drops the bad ESC sequence PLUS any other data that happens to be buffered.
Yes, that's what it does. Because the dropped sequence is _unknown_ to the
code, it can't know where it ends. So it drops all buffered data until there is
nothing.
> The point of this bug is that vi is not behaving correctly in some corner cases
In what corner cases?
"vi <test_vi_input" is not a way how "vi" is supposed to be used. If you want
to edit a file with a script, use sed/awk/grep/...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list