title: shell script functions arguments/parameters
body: <p>i'm playing around with basic shell scripts and would like to know how to do the following if possible</p>
  
  <p>i have created a basic script with a function and i want to call it when i type the main command with variables like first name and surname</p>
  
  <blockquote>
    <p>source ./test.sh; talk $John $Smith</p>
  </blockquote>
  
  <pre><code>  function talk($firstName, $lastName)
  {
          echo "hi! ${firstName} ${lastName}"
  }
  </code></pre>
  
  <p>I cant seem to get it to work,not sure where im going wrong, i've tried reading up but getting confused</p>