I have a function that returns a numeric value to indicate an error.
gimme_five() {
return 5
}
Can I use this function as a number in an assignment?
That is, I would like to do something like the following
(( COUNT+=gimme_five ))
is this possible or must they always be separate statements, a la:
gimme_five
(( COUNT+=$? ))