Closed
Description
Describe the bug
Looks like there's a race condition in shell history, sometimes it does not save the last entered command.
To Reproduce
$ erl -kernel shell_history enabled
> 1.
1
%% Ctrl+\ to quit
$ erl -kernel shell_history enabled
%% Up Arrow
%% Sometimes I see "1.", sometimes I see nothing. Consequently, If I write another command on subsequent session, sometimes I'd see it, sometimes just 1.
See: https://asciinema.org/a/oU60rFq4y20uU528NJPT3qoxY
Expected behavior
Shell history should work.
Affected versions
OTP 28.0. Works fine on OTP 27 and prior releases. I tested this on arm64 macOS and (via Docker) Ubuntu.