Description
I have a strange error of a normal word combination breaking the correct behavior in multi-window configurations.
If my config contains the word -time
, the second window doesn't work correctly anymore.
In my case I wanted to open a file which included -time
in its filename.
I could replicate it with the following minimal example:
tmuxp load tmuxp_test.yaml
session_name: testerror
windows:
- window_name: 'win1'
layout: tiled
panes:
- 'echo "A" && sleep infinity'
- 'echo "B" && sleep infinity'
- 'echo "C" && sleep infinity'
- 'echo "D" && sleep infinity'
- window_name: 'win2'
layout: tiled
panes:
- 'echo "E" && sleep infinity'
- 'echo "-time" && sleep infinity'
- 'echo "F" && sleep infinity'
- 'echo "G" && sleep infinity'
Instead of the expected printouts in each pane, the last pane of the first window contains:
echo "D" && sleep infinity
#@###:~$ echo "D" && sleep infinity
D
echo "-time" && sleep infinity
so it also has the problematic command of the second window. The first three panes of the first window only have the normal first 3 lines.
The second window prints the other 3 echos, but has executed an empty command in the second pane (instead of echoing "-time").
This also only happens in multi-window settings, if you comment-out the first window part, all of the second's window panes print correctly, the one with -time
as well.
It took me a while to point it down to the string itself, but for my main problem I can workaround it by just renaming my file.
tmuxp debug-info
-------------------------
environment:
dist: Linux-6.11.0-28-generic-x86_64-with-glibc2.39
arch: x86_64
uname: Linux; ###; 6.11.0-28-generic
version: #28~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri May 23 10:31:01 UTC 2
-------------------------
python version: 3.12.3 (main, Jun 18 2025, 17:59:45) [GCC 13.3.0]
system PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
tmux version: 3.4
libtmux version: 0.30.2
tmuxp version: 1.38.0
tmux path: /usr/bin/tmux
tmuxp path: /usr/lib/python3/dist-packages/tmuxp
shell: /bin/bash
-------------------------