return value of function in script
How can i return value of function in bash shell scrit ? I used the S? for obtaining return value. But it does not exceed the 256 limit.
pow( )
{
------
------
return $ans
}
read a
read b
pow $a, $b
echo "the result is $?"
|