Sun 16 Jan 2005 07:59:40 PM UTC, comment #1:
I think I'm getting another side effect of the same bug...
I start a screen session, the get the associated STY (using screen -ls). In another terminal, the session being attached, after having export'ed correctly the STY environment variable, I can add windows containing what I want using screen command, which is the desired behavior. However, if the screen is detached, the very same command does not create a new window (it silently does nothing). If I reattach the screen anywhere and, from the STY-aware terminal, it type once again the same command, it works well.
(Not sure whether it's clear or not, this may help. In the following termN are plain xterm shells whereas screenN are shells open in the screen session called "test".)
term1$ screen -S test
screen1$ # so this is ok, one window open
term2$ screen -ls
There are screens on:
6796.test (Attached)
(...)
term2$ export STY=6796.test
term2$ screen bash
term2$ echo $?
0
# now I've got two windows in my screen (screen1 and screen2)
screen1$ ^Ad
[detached]
term1$ # OK
term2$ screen bash # this should open a third window
term2$ echo $?
0
term1$ screen -R test
screen1$ # still two windows instead of the three I was expecting
term2$ screen bash
term2$ echo $?
0
screen1$ # the window openned correctly (screen3)
|