mksh R43

Closes #18023.

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