Log Message: Update mksh to R40. Many changes and improvements. For a full list, see http://www.mirbsd.org/mksh.htm#clog .