A little curiosity. A vanilla tmux session (stock config) had 1 pane. The pane was executing the following command:
sleep 1d; shutdown -h now.
1h into the execution of the "sleep" command, the pane was manually killed (via ctrl-c on the terminal). Surprisingly
shutdown -h now was executed too.
I wonder why bash executed the
shutdown instructions when the tmux pane got killed. I was not expecting it to have this behaviour. Any idea why ?
Env: Ubuntu 18.04 Bash 4.x