add bash autocompletion for screen -r for detached sessions

Bug #1452629 reported by Karl-Philipp Richter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
New
Low
Unassigned

Bug Description

Step to reproduce:

  * `screen sleep 10000`
  * press <kdb>Ctrl</kbd>+<kbd>a</kbd> and <kbd>d</kbd> to detach
  * make sure the session is listed with `screen -list`
  * type `screen -r <tab><tab>`

The auto-completion offers to display all binaries, but should help to autocomplete the list of available sessions.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: screen 4.2.1-3
Uname: Linux 4.0.0-040000-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
Date: Thu May 7 10:37:10 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-04-20 (16 days ago)
InstallationMedia: Ubuntu-Server 14.10 "Utopic Unicorn" - Release amd64 (20141022.2)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: screen
UpgradeStatus: Upgraded to vivid on 2015-04-24 (12 days ago)

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :
Revision history for this message
Axel Beckert (xtaran) wrote :

Hi,

I assume you refer to autocompletion with bash as shell since e.g. zsh's screen autocompletion already has that feature.

summary: - add autocompletion for screen -r for detached sessions
+ add bash autocompletion for screen -r for detached sessions
affects: screen (Ubuntu) → bash-completion (Ubuntu)
Revision history for this message
Axel Beckert (xtaran) wrote : Re: [Bug 1452629] Re: add bash autocompletion for screen -r for detached sessions

Hi,

Karl-Philipp Richter wrote:
> ** Package changed: screen (Ubuntu) => bash-completion (Ubuntu)

Indeed, the package bash-completion already ships a file at
/usr/share/bash-completion/completions/screen.

So yes, the issue is better suited being filed against
bash-completion. (If there wasn't such a file, it could have been
shipped with screen instead, too. But since it's already there...)

Mathew Hodson (mhodson)
Changed in bash-completion (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.