fc -s causes infinite loop

[email protected] Fri, 02 Jan 2026 20:18:25 +0000
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
I'm trying to mimic zsh re-run ("r") behavior. The Posix way for that is
fc -s which works as expected in bash and zsh when aliased as alias r="fc -s"

$ pacman -Q dash
dash 0.5.12-1
$ dash
$ echo test
$ fc -s
test
echo test
test
echo test
test
echo test
test
echo test
test
echo test
test
echo test
....

Avid