This preexec does not get shipped with Ubuntu, does it? You might want to escape it using $'', like: print -Pn $'\e]0;$1\a'
See also the "print"'s in the title() function of my oh-my-zsh fork at: https://github.com/blueyed/oh-my-zsh/blob/8d5105135772ae0c3c81850cea422cc322ed6f7d/lib/termsupport.zsh#L27 ** Changed in: zsh (Ubuntu) Importance: Undecided => Low ** Changed in: zsh (Ubuntu) Status: New => Incomplete ** Changed in: zsh (Ubuntu) Status: Incomplete => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/435336 Title: zsh interpret some %[a-z] in command line To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/435336/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs