logIt Log Around The Clock

Function Return Value ?

tags:

The following function:

1
2
3
processLine(){
<strong>line</strong>="$@"
}

Does it have some sort of “return value”? (in this case the variable line) by calling it through:

processLine $line
echo $line

In the above example, I echo the value of line after being processed by processLine(). (?)


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">