On Wed, Oct 26, 2022 at 11:30:20AM +0200, Uwe Werler wrote:
> Hi all,
>
> when running ksh in vi-mode an empty line could be stored in history:
>
> Steps to reproduce in command mode:
>
> 1. go history back e.g.: k
> 2. start editor with: v
> 3. delete the whole line and :wq
> 4. check history
Hi all,
when running ksh in vi-mode an empty line could be stored in history:
Steps to reproduce in command mode:
1. go history back e.g.: k
2. start editor with: v
3. delete the whole line and :wq
4. check history with fc -l
Without patch:
zarathustra:/usr/src/bin/ksh$ fc -l
2 ls -la
3