I am trying to programmatically open a new terminal and automatically run a custom script that sets various environment variables to prime it for an interactive session. This all works fine, except the resulting terminal cannot be edited, i.e., there is no cursor. My current attempt looks like this:
konsole -hold -e /path/to/bash/script/run_oenv.sh
run_oenv.sh looks like this (for simple testing):
echo hello world export FOO=bar
When running the above command
run_oenv.sh is executed successfully and I see the expected debug statement echoed in the new terminal, but I just can't work out how to make the new terminal interactive.
What am I missing?
Ultimately the bash script will have to do more than just set environment variables but this is the simplest test case.
This is on Centos 7/KDE.