I want to launch a continuous running command with xterm or urxvt and after pressing Ctrl+C to exit the command I want to get a shell to enter further commands in the same window.
With non-continuous running commands I can do
urxvt -hold -e sh -c "echo foo; sh"
But with continuous running commands this does not work
urxvt -hold -e sh -c "tail -f /dev/null; sh"
After pressing Ctrl+C the command is killed but urxvt enters an unresponsive state and does not open a shell. Same thing happens with xterm.
Any solutions for this?