Andreas Schwab writes: > On Aug 12 2024, Philip Kaludercic wrote: > >> diff --git a/matlab-shell.el b/matlab-shell.el >> index ee80555bee..07c6223137 100644 >> --- a/matlab-shell.el >> +++ b/matlab-shell.el >> @@ -1003,7 +1003,7 @@ Sends commands to the MATLAB shell to initialize the MATLAB process." >> (ecca (if ecc (format "emacs.set('clientcmd', '%s');" ecc) "")) >> (args (list nsa ecca)) >> (cmd (format "run('%s');%s" initcmd (apply 'concat args)))) >> - (matlab-shell-send-command cmd) >> + (matlab-shell-send-command (string-replace (expand-file-name "~/") "~/" cmd)) > > aka abbreviate-file-name Uh, wrong patch (don't even remember touching that file?):