2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by eggi
0

Hey There,

I'm not 100% sure on this one, but I believe that "exit 0" or "exit" with any number afterward, causes the shell to exit, while exit(0) is a shell built-in that causes program termination. Generally, your program is running in a subshell that will terminate when your script terminates, so, practically, there's not much of a difference.

Anyone else? Interesting question :)

, Mike

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.