Public bug reported:

>From the manpage (man 1 screen):
       -R   attempts to resume the youngest (in terms of creation time) 
detached screen  session  it
            finds.   If successful, all other command-line options are ignored. 
 If no detached ses‐
            sion exists, starts a new session using the specified options, just 
as  if  -R  had  not
            been specified. The option is set by default if screen is run as a 
login-shell (actually
            screen uses "-xRR" in that case).  For combinations with the  -d/-D 
 option  see  there.
            Note: Time-based session selection is a Debian addition.

I have two detached sessions hanging:
[user@uqbar ~] screen -ls
There are screens on:
        22457.pts-1.uqbar       (16/01/2012 11:36:31)   (Detached)
        22042.pts-1.uqbar       (16/01/2012 11:26:14)   (Detached)
2 Sockets in /var/run/screen/S-user.

>From a terminal I get the following:

[user@uqbar ~] screen -R
There are several suitable screens on:
        22457.pts-1.uqbar       (16/01/2012 11:36:31)   (Detached)
        22042.pts-1.uqbar       (16/01/2012 11:26:14)   (Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.

Instead of resuming any detached session.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: screen 4.0.3-14ubuntu8
ProcVersionSignature: Ubuntu 3.0.0-15.25-generic-pae 3.0.13
Uname: Linux 3.0.0-15-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Mon Jan 16 11:44:36 2012
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 LANGUAGE=
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
SourcePackage: screen
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: screen (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/917100

Title:
  screen doesn't attempt  to resume the youngest detached screen with -R
  option

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/screen/+bug/917100/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to