FYI, I filed a tiny patch for ansi-osc.el which applies `downcase` to the result of `(system-host)` in order to match the behavior obtained when parsing the URL extracted from the comint output. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68632 Regards, Brad