title: Execute a shell script in current shell with sudo permission
body: <p>To execute a shell script in current shell, we need to use a period <code>.</code> or a <code>source</code> command. But why does it not work with a <code>sudo</code> permission?</p>
  <p>I have a script with execute permission called <code>setup.sh</code>. When I use a period, I get this:</p>
  <pre><code>$ sudo . ./setup.sh 
  sudo: .: command not found
  </code></pre>
  <p>The <code>source</code> command also produces a similar error. Am I missing out something? What should I do to run the script with <code>sudo</code> permission in the <strong>same/current</strong> shell?</p>