Hi Paul, thanks for your input -- do you have a link to such reports? Looks like Eric Ludlam in on the case at Mathworks, so there's some hope for a solution. Until we know more, the great mystery is why the shell would behave any differently inside of emacs vs outside of it. Peter On Tue, Nov 15, 2016 at 10:02 AM, Paul Eggert wrote: > In reading the comments this appears to be a Matlab bug; more precisely, a > bug in the JVM shipped with Matlab. I saw reports that the problem is fixed > by using a free JVM rather than Matlab's bundled one, so perhaps you can > suggest this to other Matlab users. It could be difficult to solve the > underlying problem (whatever it is) without more cooperation from the > Matlab developers. >