Using the login method for testing, it happened to me too many times
that I accidentally exited the shell and lost all work. So now,
I use the following script and the execut method instead, which
requires me to 'exit' and ctrl-c within one second to really exit
the pbuilder instance.
#!/bin/bash
while true; do
echo "entering the shell..."
/bin/bash </dev/tty >/dev/tty
sleep 1
done
It would be nice if the login method could ask me if I really wanted
to exit, or respawn the shell if I don't. This can be made dependent
on a configuration variable.
Thanks,