add function information for bash

This commit is contained in:
alexandre medeiros 2013-09-22 11:28:59 -03:00
parent e1c34ca138
commit 182eab6051

View File

@ -115,4 +115,16 @@ do
echo "$VARIABLE"
done
# You can also define functions
# Definition:
foo ()
{
echo "Arguments work just like script arguments: $@"
echo "And: $1 $2..."
echo "This is a function"
return 0
}
# Calling your function
foo "My name is" $NAME
```