It's perhaps worth noting that raw strings would be another way to
handle the escape sequences, e.g.:
environ['PROMPT_COMMAND'] = r'printf
"\033]0;<mock-chroot>\007"'
I don't know if one way or the other is preferred in mock. (I decided
against using some of each in the patch. ;)
--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Good judgment comes with experience. Unfortunately, the experience
usually comes from bad judgment.