Make screen completion match the -S name

Bug #924676 reported by Jamie Flournoy
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

if you make a screen with "screen -S foo" you cannot then reattach it via "screen -R f<tab>" with the current completion script. It only completes if you start typing with the numeric ID from screen -ls, which is not as easy to remember as the name you gave it ("foo" in this example).

Someone else was nice enough to write a patch to accomplish this three years ago:
  http://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311540&group_id=100114
...but it looks like nobody noticed it and it was not accepted into the upstream sources. :(

I have updated the patch to work with /etc/bash_completion.d/screen as of Ubuntu 10.04 LTS.
The version of the screen package that's installed is 4.0.3-14ubuntu1.2.
The version of the bash-completion package that's installed is 1:1.1-3ubuntu2.

I looked at the oneiric version of bash_completion and /etc/bash_completion.d/screen hasn't changed since the version I have, so the patch should apply cleanly to the version in bash-completion_1.3.orig.tar.bz2 (which appears to be the current upstream release that oneiric uses).

Tags: patch
Revision history for this message
Jamie Flournoy (jamie-pervasivecode) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch to satisfy this feature request" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Changed in bash-completion (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Peter Cordes (peter-cordes) wrote :

Works now, in Trusty. Must have finally made it in.

Changed in bash-completion (Ubuntu):
status: Triaged → Fix Released
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.