From 4cc63974f11e61ced04e9ae1e059492486653d93 Mon Sep 17 00:00:00 2001 From: mlot Date: Wed, 13 May 2026 12:18:41 -0400 Subject: [PATCH] exit and return codes --- exit_return_codes/exercise1.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 exit_return_codes/exercise1.sh diff --git a/exit_return_codes/exercise1.sh b/exit_return_codes/exercise1.sh new file mode 100644 index 0000000..8267e08 --- /dev/null +++ b/exit_return_codes/exercise1.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# +# +# + +GLOBAL_VAR1="one" +GLOBAL_VAR2="two" + +function function_one() { + local LOCAL_VAR1="one" + # +} + +# Main body of shell script starts here. +# +# +# + +# Exit with an explicit exit status. +exit 0