Hi,
Bash (ksh) isn't that strickt when it comes to functions. Unless specifically set, variables are also known inside functions. Using $1, $2 etc also works.
Code:
#!/bin/bash
function callMe()
{
echo "\$1 : $1"
echo "\$varOne : $varOne"
echo "\$2 : $2"
echo "\$varTwo : $varTwo"
}
varOne="some text"
varTwo="100"
callMe "$varOne" "$varTwo"
When the function is called without variables, $1, $2 cannot be used.
Hope this helps.