Package: screen
Version: 4.0.3-0.3
Severity: normal

This is likely to bite people who do semi-advanced scripting involving
screen.  Consider this example script:

#!/bin/sh
[ $STY ] || exit 1
sleep 5
screen -t one sh -c "sleep 5; ping -c20 localhost | tee /tmp/1"
echo $?
sleep 1
screen -t two sh -c "sleep 10; ping -c20 localhost | tee /tmp/2"
echo $?

If I run it inside an attached screen, it does the obvious: creates
two temporary windows after 5s, and run ping inside them.

But if I detach before the 5s have passed, neither window is created
and ping is not run.  Both screen invocations still exit successfully.

I have no idea if there is a good reason for this behavior. If there
is, I can't see it.  The screen FAQ doesn't mention what should happen,
but everything else works so insanely well with detached screens, so
this comes as a complete surprise.

It's not Debian-specific because I see it on RedHat Enterprise Linux 4
too ... but it is easier to report it in a well-known and open place
like Debian's BTS than to RH or the screen mail address.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-powerpc
Locale: LANG=sv_SE, LC_CTYPE=sv_SE (charmap=ISO-8859-1)

Versions of packages screen depends on:
ii  base-passwd            3.5.11            Debian base system master password
ii  debconf [debconf-2.0]  1.5.11etch1       Debian configuration management sy
ii  libc6                  2.3.6.ds1-13etch4 GNU C Library: Shared libraries
ii  libncursesw5           5.5-5             Shared libraries for terminal hand
ii  libpam0g               0.79-5            Pluggable Authentication Modules l
ii  passwd                 1:4.0.18.1-7      change and administer password and

screen recommends no packages.

-- debconf information:
  screen/old_upgrade_prompt: false



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to