I am working with a bash script and I want to execute a function to print a return value:

function fun1(){
  return 34
}
function fun2(){
  local res=$(fun1)
  echo $res
}


when I execute func2 it does not print "34". Can anybody help me?


Question: Given Ohm's law, how can current increase if voltage increases, given fixed resistance?
Answer: 
  how can this be true?


If we connect 1.5V cell to a 10 ohm resistor, the current is, by Ohm's law, 0.15A and the power delivered to the resistor by the cell is 0.225W.

Now, connect a 9V battery in place of the 1.5V cell.  The current is now, by Ohm's law, 0.9A and the power delivered to the resistor is now 8.1W.

The 9V battery must deliver far more power to the resistor than the 1.5V cell does.

There's nothing mysterious here.  Why do you think the current should not increase if the voltage increases?