1

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?

0

1 Answer 1

1

answered my own question, return was what I was looking for

Sign up to request clarification or add additional context in comments.

1 Comment

You were sourceing the program instead of executing it, right?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.