title: Importing shell script function
body: <p>I have a function <code>err()</code> in file <code>abc</code>. The files do not have a <code>.sh</code> extension, but they start with <code>#!/bin/bash</code>.</p>
  
  <pre><code>err () {
      echo "${1}" &gt;&amp;2 
  }
  </code></pre>
  
  <p>Now I am importing it in a different file <code>xyz</code>:</p>
  
  <pre><code>source abc
  someFunction(){ 
      err "Failed to back up"
  }
  </code></pre>
  
  <p>Is this the right way of importing?</p>