I want to return the value from a function called in a shell script. Perhaps I am missing the syntax. I tried using the global variables. But that is also not working. The c
If it's just a true/false test, have your function return 0 for success, and return 1 for failure. The test would then be:
return 0
return 1
if function_name; then do something else error condition fi