Execute users default shell in a shell script

In a shell script I’d like to execute the users shell and continue the script once the shell finishes.

It should look something like this:

> myScript.sh
Script ouput
> echo "shell started by myScript.sh"
shell started by myScript.sh
> exit
More script output

It works when I execute a shell in the script:

echo "Script output"
echo "More script output"

But I’d like it to use the users login shell (or the shell he was in before he started myScript.sh).

Go to Source
Author: Philippe