hey guys I've had an issue of terminating my terminal (ssh) when exit is thrown in a script and am hoping for a way around it, here's an example
# ssh name@host
$ program
# program contents
#!/bin/bash
program()
{
exit 0
}
exit
Connection to host closed.
# gfd =(
this kicks me back to my local terminal, is there a way to exit/quit without losing my session?