Task: Implement a Bash Script Exit Mechanism That Stops Execution Without Closing the Terminal
Task: Implement a Bash Script Exit Mechanism That Stops Execution Without Closing the Terminal: a task in Terminal-Lego-15k (Harbor dataset). When using the exit command in a sourced shell script, it terminates the entire terminal session. This task requires you to implement a mechanism that…
The task
When using the `exit` command in a sourced shell script, it terminates the entire terminal session. This task requires you to implement a mechanism that allows a script to stop execution (including stopping any parent scripts that sourced it) while keeping the terminal session alive.
Part of PrimeIntellect/Terminal-Lego-15k.