<h3>NAME</h3><p>source - Evaluate a file or resource as a Tcl script </p><h3>SYNOPSIS</h3><p><strong>source </strong><em>fileName</em></p><p><strong>source</strong> <strong>-rsrc </strong><em>resourceName </em>?<em>fileName</em>?</p><p><strong>source</strong> <strong>-rsrcid </strong><em>resourceId </em>?<em>fileName</em>?</p><h3>DESCRIPTION</h3><p>This <a href="https://www.lifewire.com/learn-how-linux-4102755" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">command</a> takes the contents of the specified file or resource and passes it to the Tcl interpreter as a text script. The return value from <strong>source</strong> is the return value of the last command executed in the script. If an error occurs in evaluating the contents of the script then the <strong>source</strong> command will return that error. If a <strong>return</strong> command is invoked from within the script then the remainder of the file will be skipped and the <strong>source</strong> command will return normally with the result from the <strong>return</strong>command.</p><p>The <em>-rsrc</em> and <em>-rsrcid</em> forms of this command are only available on Macintosh computers. These versions of the command allow you to source a script from a <strong>TEXT</strong> resource. You may specify what<strong>TEXT</strong> resource to source by either name or id. By default Tcl searches all open resource files, which include the current application and any loaded C extensions. Alternatively, you may specify the<em>fileName</em> where the <strong>TEXT</strong> resource can be found.</p><p>KEYWORDS</p><p>file, script</p><p><strong>Important:</strong> Use the <em>man</em> command (<em>% man</em>) to see how a command is used on your particular computer.</p>