summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2015-06-08 23:43:38 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2015-06-08 23:43:38 +0200
commit6d367d5ca45382d87cabf903e94a1935998b7741 (patch)
treef440582bee98ab7fe6e520d5555df14c0f64c8f1
parent98334b5f852fc27d8865018949c5e74d41fc2b33 (diff)
downloadscreen-6d367d5ca45382d87cabf903e94a1935998b7741.tar.gz
Document -R & -RR options properly
Bug: 45202
-rw-r--r--src/doc/screen.15
-rw-r--r--src/doc/screen.texinfo4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/doc/screen.1 b/src/doc/screen.1
index 2072f4a..8a0d51f 100644
--- a/src/doc/screen.1
+++ b/src/doc/screen.1
@@ -342,6 +342,11 @@ which runs in multiuser mode. This indicates that screen should look for
sessions in another user's directory. This requires setuid-root.
.TP 5
.B \-R
+resumes screen only when it's unambiguous which one to attach, usually
+when only one
+.I screen
+is detached. Otherwise lists available sessions.
+.B \-RR
attempts to resume the first detached
.I screen
session it finds. If successful, all other command-line options are ignored.
diff --git a/src/doc/screen.texinfo b/src/doc/screen.texinfo
index b7512a5..5bae664 100644
--- a/src/doc/screen.texinfo
+++ b/src/doc/screen.texinfo
@@ -406,6 +406,10 @@ runs in multiuser mode. This indicates that screen should look for
sessions in another user's directory. This requires setuid-root.
@item -R
+resumes screen only when it's unambiguous which one to attach, usually
+when only one @code{screen} is detached. Otherwise lists available sessions.
+
+@item -RR
Resume the first appropriate detached @code{screen} session. If
successful, all other command-line options are ignored. If no detached
session exists, start a new session using the specified options, just as