On 08/01/2023 16:10, наб wrote:
Hi! Fun test for ya (--with-libedit): $ printf '%s\n' id 'fc 1' a ls . w q 'fc -s 1' | src/dash -i
Indeed. This was reported also by Martijn Dekker, <https://marc.info/?l=dash&m=154635285309187>, that thread lists some more related problems in the implementation of the fc command.
Cheers, Harald van Dijk