passing command line parameters to functions - sh

All,

I have a sh script of the following tune:

function a () { #functionality.. }

function b () { #functionnlity.. }

function check () { # this function checks for env and if all fine call build }

function usage () { #sh usage details }

function build () { #calls either a or b or both }

if [ $# == 0 ] ; then
usage ;
else
check;
fi;
# end of script

I run the script as follows
sh build.sh a

Now I need to know how to pass the parameters i.e all to check, which in turn will pass it on to build.

uname -a is
Linux staci21 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU/Linux

Vino

try

check $*

or depending on the way you want to use the args
check $@

see:
man sh

for the explanation of both options

$@ and $* are absolutely identical in effect. You must surround them in double quotes to exploit the difference.

Thanks to all.

Am using "$@"

Vino

like I said read the man page...it explains that there.