If I execute a program using the -e option for xterm and close this program, then xterm closed as well, e.g.
xterm -hold -e "nano"
The window (i3wm) is still there but it's empty and I'm not able to do any inputs. How to run xterm like in the example above with a additional requirement, a callback for xterm if I closed nano?
What I can do is:
xterm -hold -e "nano;bash"
But I don't understand, why I have to start a shell like bash again. I thought xterm already should run a shell.
-holdin the first place?-holdmeans "don't destroy the window, wait for the window manager to do it", and that's exactly what happens. If you want to start a new xterm with a login shell, why don't you use justxterm? Or do you want to start a login shell, and execute a command within this shell, and then continue to use the shell?