Extent of this question: https://unix.stackexchange.com/q/467025/256195
But now after run tmux inside sessionA to create sessionB, actually first tmux create a new named session 1 and I'd need to change the name to sessionB. How to?
I can change in command line (zsh>) and it works but in an zsh script, the output keep saying - I just copy and paste from script to command line and in command it works perfectly as I expected:
can't find session 1
can't find session 2
There's somehow tmux even in order in zsh script, zsh processes commands in unexpected behavior.
NOTE: I call tmux inside the first window of sessionA.
EDIT: in command line I can see session name 1 exist but when I try to rename it in zsh script it's failed, but in command it work. 

