Top "Exit" questions

Exiting, quitting, or halting refers to the termination of a process or program.

In a Bash script, how can I exit the entire script if a certain condition occurs?

I'm writing a script in Bash to test some code. However, it seems silly to run the tests if compiling …

bash scripting exit exit-code
How to exit from Python without traceback?

I would like to know how to I exit from Python without having an traceback dump on the output. I …

python exit traceback
How to properly exit a C# application?

I have a published application in C#. The problem here is whenever I close the main form by clicking on …

c# winforms exit
How to stop C++ console application from exiting immediately?

Lately, I've been trying to learn C++ from this website. Unfortunately whenever I try to run one of the code …

c++ console exit terminate c++-faq
How do I exit a while loop in Java?

What is the best way to exit/terminate a while loop in Java? For example, my code is currently as …

java while-loop exit break
Difference between return and exit in Bash functions

What is the difference between the return and exit statement in Bash functions with respect to exit codes?

bash function return-value return exit
Closing Application with Exit button

I'm a beginner in android, I'm practicing a Project that have a 2 labels and 1 exit button. But when I run …

android android-layout layout exit
Checking Bash exit status of several commands efficiently

Is there something similar to pipefail for multiple commands, like a 'try' statement but within bash. I would like to …

bash exit
SQL Server - stop or break execution of a SQL script

Is there a way to immediately stop execution of a SQL script in SQL server, like a "break" or "exit" …

sql sql-server scripting exit
How to terminate the script in JavaScript?

How can I exit the JavaScript script much like PHP's exit or die? I know it's not the best programming …

javascript exit die