jestrada101
Technical User
- Mar 28, 2003
- 332
Is there a method to return a variable when a function is called? something like the following?
functionA()
{
(( a=100 + $1 ))
return a
}
tmp_a=`functionA 100`
-------------------------------------------
I'd like to store the returned "200" value into "tmp_a".
Thanks for any advice...
je
functionA()
{
(( a=100 + $1 ))
return a
}
tmp_a=`functionA 100`
-------------------------------------------
I'd like to store the returned "200" value into "tmp_a".
Thanks for any advice...
je