title: How to execute script in the current shell on Linux?
body: <p>Is there a way to mark a script to be executed in the current shell from whitin It?
  I know I can use:</p>
  
  <pre><code>. ./path/myscript.sh
  </code></pre>
  
  <p>but I need a way to include the "dot" way inside the script.</p>
  
  <p>Edit:
  Here is the case. I have a script "myscript.sh" located in directory A:</p>
  
  <pre><code>rm -r A
  mkdir A
  touch A/test.file
  cd A
  </code></pre>
  
  <p>When the script is executed in normal a way:</p>
  
  <pre><code>sh myscript.sh
  </code></pre>
  
  <p>When exiting the script I cannot list the directory.
  When script is started in the current shell:</p>
  
  <pre><code>. ./myscript.sh
  </code></pre>
  
  <p>There is no problem. I need a way to include this "dot" way inside my script so It can be called without It.</p>