See https://arcan-fe.com/, in particular Lash: https://arcan-fe.com/2022/10/15/whipping-up-a-new-shell-lash...
Thanks for the links!
This looks like the future.
It does everything 100% correctly.
(Now "only" the rusty Unix commands need to get evolved into some proper interactive language and this would be the perfect CLI.)
I'm impressed heavily. Going to install this ASAP to play around with it.