Changes

Jump to navigation Jump to search
281 bytes added ,  07:17, 24 February 2017
Line 145: Line 145:  
echo foo
 
echo foo
 
</source>
 
</source>
 +
 +
return can only be an integer between 0-255 (0=success); to get the return value (if you just want to return an integer 0-255) is $?</br>
 +
To return something else use echo so output can be captured with $(func)</br>
 +
fun1 || fun2 will only run fun2 if fun1 returns a 0 value</br>
 +
 
== Redirections ==
 
== Redirections ==
 
=== stdout 2 file ===
 
=== stdout 2 file ===

Navigation menu