Package: screen
Version: 4.0.3-0.3
Severity: normal
File: /usr/bin/screen

according to the manual page screen(1), -q when used with -ls should 
exit with 10+N, where N is the number of usable sessions; or exit with 9 
or 10 if there are no sessions.  however, even when sessions are 
available, it still exits with 10:

[EMAIL PROTECTED]:~>screen -ls
There are screens on:
        26054.pts-19.hemlock    (Detached)
        23539.pts-32.hemlock    (Detached)
        26079.pts-19.hemlock    (Detached)
3 Sockets in /var/run/screen/S-river.

<1> [EMAIL PROTECTED]:~>screen -q -ls
<10> [EMAIL PROTECTED]:~>screen -ls -q
No Sockets found in /var/run/screen/S-river.

<1> [EMAIL PROTECTED]:~>

(<N> being the last exit status.)

the output of "screen -ls -q" is particularly confusing.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21.1-hemlock10-twincest (SMP w/2 CPU cores)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages screen depends on:
ii  base-passwd                 3.5.11       Debian base system master password
ii  debconf [debconf-2.0]       1.5.13       Debian configuration management sy
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libncursesw5                5.5-5        Shared libraries for terminal hand
ii  libpam0g                    0.79-4       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