sessions with a dash in the name not listed
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
description: | updated |
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