byobu does not respect -r option

Bug #791617 reported by James Spencer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Medium
Unassigned
byobu (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

$ byobu --version
byobu version 4.5
Screen version 4.00.03jw4 (FAU) 2-May-06
If I have multiple (detached) screen sessions, then running

$ byobu

allows me to select the session to re-attach. This is quite nice but often I explicitly name the sessions so I can quickly choose them from the command line using

$ screen -r sessionname

The byobu analogue does not work as byobu sets its own session name which is only unset if the user provides the session name using -S or if the user is listing all screen sessions. The same bug is still present in the current trunk branch.

The following change (plus a correction to the comments) to the byobu script seems to fix this problem.

< # Zero out $NAME if user has specified a -S
---
> # Zero out $NAME if user has specified a session name or asked to see list of
> # active sessions.
96c97
< case $i in -*S|-ls|-list) NAME= ;; esac
---
> case $i in -*S|-ls|-list|-r) NAME= ;; esac

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the bug and fix!

Changed in byobu:
status: New → Fix Committed
importance: Undecided → Medium
Changed in byobu (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
Changed in byobu:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 4.9-0ubuntu1

---------------
byobu (4.9-0ubuntu1) oneiric; urgency=low

  [ Dustin Kirkland ]
  * === added directory usr/sbin, usr/sbin/byobu-classroom,
    usr/share/byobu/profiles/classroom:
    - added to the byobu repository for source control, but not yet
      QA'd for release, so they're not yet installed by the makefiles
      or documented; will get to this eventually
  * usr/bin/byobu: LP: #791617
    - fix "byobu -r session", zero out NAME if user has a -r
  * Close LP: #789647
  * Close LP: #789408

  [ Emanuele Rocca ]
  * usr/bin/byobu-config: LP: #789274
    - fix autodetection of byobu launch
 -- Dustin Kirkland <email address hidden> Wed, 01 Jun 2011 09:24:50 -0500

Changed in byobu (Ubuntu):
status: Fix Committed → 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.