I am new to tmux, and find this really strange behaviour when I tried it.
I write a really simple script
tmux new-session -s "test" -d
tmux send-keys -t test hello Enter
tmux attach -t "test"
when I run it, the shell shows the following
hello
eric:bin$ hello
I only expect the "hello" command shows once inside the prompt, but the "hello" command will show twice: one outside the prompt, one inside the prompt
Does anyone know the reason?