The Bourne Again shell is not based upon the Korn shell. There's a very big clue in its name which prior shell the Bourne Again shell started out to clone. (-:
The unequivocal direct evidence that the Bourne Again shell is based upon the Bourne shell is Richard Stallman saying so, back when it was written in 1988.
"Foundation staff member Brian Fox is now implementing an imitation of the Bourne shell."
https://pages.oils.pub/spec-compat/2025-06-19/renamed-tmp/sp...
(which I created)
Even the upcoming bash 5.4 implement ksh command sub ${ echo hi; }, which is more evidence that bash is based on ksh.
They're still implementing ksh 35 years later ...