sessions with a dash in the name not listed

Bug #1977906 reported by Daniel Woznicki
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
byobu
New
Undecided
Unassigned

Bug Description

When I create a session that has a dash in the name, that session does not show up as an option when I run `byobu`.

For example, if I create a session named "hello-world" and detach, then run `byobu`, the "hello-world" session doesn't show as as an attach option. It does, however, show up when I run `byobu ls`.

    danwoz@flan ~
    19:14:26 ❯ byobu new -s hello-world
    <F6>
    [detached (from session hello-world)]

    danwoz@flan ~
    19:16:28 ❯ byobu ls
    1: 1 windows (created Tue Jun 7 16:00:13 2022)
    2: 1 windows (created Tue Jun 7 17:56:15 2022)
    hello-world: 1 windows (created Tue Jun 7 19:14:25 2022)

    danwoz@flan ~
    19:16:32 ❯ byobu

    Byobu sessions...

      1. tmux: 1: 1 windows (created Tue Jun 7 16:00:13 2022)
      2. tmux: 2: 1 windows (created Tue Jun 7 17:56:15 2022)
      3. Create a new Byobu session (tmux)
      4. Run a shell without Byobu (/bin/bash)

    Choose 1-4 [1]:

I can also attach to the session with `byobu a -t hello-world`.

I haven't experienced this issue with session names that do not contain a dash.

My byobu installation is from the apt repository on Debian 11. Here's the output of `byobu --version`.

    byobu version 5.133
    tmux 3.1c

Daniel Woznicki (danwoz)
description: updated
Revision history for this message
MeteorRain (msg7086) wrote :

I hit the same problem.

You can run the following command to fix the issue.

sed -i 's/ and s.find("-") == -1//' /usr/lib/byobu/include/select-session.py

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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