apple's ksh isn't so we take their patch.
Created attachment 166437 [details, diff] and here it is
applied, affected users will have to remerge ksh to get the patch. I didn't want to mess with a inter-rev bump. thx.