Comment 23 for bug 1197726

Revision history for this message
In , Steven (steven-redhat-bugs) wrote :

Please note that F19 is no longer compatible with OpenStack's devstack script. This blocks all development of OpenStack on Fedora 19 hosts. For others that come across this bug in search ofa workaround, place the following in /etc/sysconfig/bash-prompt-screen:
printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"

For the specific issue, this change breaks the -t flag to screen and interaction with the -p flag. A reproducer is as follows:
screen -d -m -S stack -t shell -s /bin/bash
screen -r stack -X hardstatus alwayslastline '%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})'^

After running screen -r, the hardstatus line should display the window name (bash) but instead is displaying the full path. This breaks how screen and -t operate with another in a way I don't entirely understand.

This causes an operation like:
screen -t key bash
screen -S stack -p key -X stuff 'cd /opt/stack/keystone && /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug || touch "/opt/stack/status/stack/key.failure"^M'

to fail because screen -p cannot be used to preselect a window name if the window name keeps changing and doesn't match the actual name of the window title.