First of all sorry about terminology errors, I'd try to be clear. I open a shell (like sbt or node debug from my bash). Then inside this shell, I open another one (using scala or node repl respectively). Now I want to close the last shell and come back to the first one I opened (e.g. the sbt), but when I use CTRL + C, all shell hierarchy is being closed and I come back to the original bash terminal. As I learnt from here, this behavior is not standard and is undesirable for me.EDIT:I'm struggling this issue with node debug, so actually the issue isn't about sbt and scala.I used them to perform an experiment that shows a general nonstandard behavior of my bash. I found a similar issue with windows here, but I use Ubuntu 14.04
CTRL C behavior in hierarchy of shells
bash;signals;subshell