I want to know what return values we can use that will not be mistaken by for ex. SIGINT?ex.:$sleep 10$#hit ctrl+c$echo $?130so I know I must not use anything like return 130 or exit 130so this would be misleading:$function FUNC(){ return 130; };FUNC;echo $?130
What return/exit values can I use in bash functions/scripts?
bash;shell;function;exit;return status
You can use any number between 0 to 255 except for reserved exit codes (click here to know more)