Jump to content

Talk:Source (command)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Not only Tcl

[edit]

Currently, this article states:

Source is a Unix command that evaluates a file or resource as a Tcl script.

Imho, the source command is not limited to Tcl scripting. As an example, all Bourne-inherited shells include a source command [1]. --Abdull (talk) 15:14, 23 December 2010 (UTC)[reply]

In the Bourne shell, the command is called '.' while it is called 'source' in the csh where the name originated. In a Tcl context it is not a "Unix command" but probably a Tcl builtin. Elizium23 (talk) 15:20, 23 December 2010 (UTC)[reply]
With my limited insight, I believe that the tcl usage and the shell usage are unrelated. And thus right now, this article only serves to confuse. 213.165.179.229 (talk) 11:44, 7 July 2011 (UTC)[reply]

I just implemented the changes recommend above. C4dn (talk) 02:12, 12 April 2012 (UTC)[reply]

What is meant here?

[edit]

From this article's current version: 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, or the script file does not have the "execute" permission.

"Should be run with source your-script syntax" instead of which other syntax?

--Abdull (talk) 16:41, 14 July 2012 (UTC)[reply]

I have attempted to clarify that sentence. The other syntax implied was the ordinary invocation of an executable as the first argument on the command line. Elizium23 (talk) 19:50, 14 July 2012 (UTC)[reply]