mksh R45

Closes #19468.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>