byobu does not respect -r option
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
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Thanks for the bug and fix!