Soit le script suivant :
#/bin/bash function maFonction { echo $1 shift 1 echo $2 } maFonction $1 $2 $3