I need to open a new terminal from my script but I want to wait for that terminal to exit before continuing with the rest of the script. I know that 

```
gnome-terminal -e 'nano test.txt'

```

opens a new terminal window with "test.txt" opened in nano, but the calling script does not get blocked. Is there a way to wait for the new terminal to exit, before continuing the original script?