Jump to content

source (command)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by AnomieBOT (talk | contribs) at 15:56, 23 December 2010 (Dating maintenance tags: {{Merge}}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

source is a Unix command that evaluates a file or resource as a Tcl script.[1] When a return statement is reached, the script ends. Some bash scripts should be run using the source your-script syntax, e.g., if they contain a change directory (cd) command and the user intends that he be left in that directory after the script is complete.

References