title: Passing parameters to a Bash function
body: <p>I am trying to search how to pass parameters in a Bash function, but what comes up is always how to pass parameter from the <em>command line</em>.</p>
  <p>I would like to pass parameters within my script. I tried:</p>
  <pre><code>myBackupFunction(&quot;..&quot;, &quot;...&quot;, &quot;xx&quot;)
  
  function myBackupFunction($directory, $options, $rootPassword) {
       ...
  }
  </code></pre>
  <p>But the syntax is not correct. How can I pass a parameter to my function?</p>