source - Online Linux Manual PageSection : n
Updated :
Source : Tcl
Note : Tcl Built-In Commands
NAMEsource − Evaluate a file or resource as a Tcl script
SYNOPSISsource fileName source −encoding encodingName fileName
.\}
DESCRIPTIONThis command takes the contents of the specified file or resource and passes it to the Tcl interpreter as a text script. The return value from source 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 source command will return that error. If a return command is invoked from within the script then the remainder of the file will be skipped and the source command will return normally with the result from the return command. The end-of-file character for files is ‟\32” (^Z) for all platforms. The source command will read files up to this character. This restriction does not exist for the read or gets commands, allowing for files containing code and data segments (scripted documents). If you require a ‟^Z” in code for string comparison, you can use ‟\032” or ‟\u001a”, which will be safely substituted by the Tcl interpreter into ‟^Z”. A leading BOM (Byte order mark) contained in the file is ignored for unicode encodings (utf-8, unicode). The −encoding option is used to specify the encoding of the data stored in fileName. When the −encoding option is omitted, the system encoding is assumed.
EXAMPLERun the script in the file foo.tcl and then the script in the file bar.tcl: source foo.tcl
source bar.tcl
Alternatively: foreach scriptFile {foo.tcl bar.tcl} {
source $scriptFile
}
SEE ALSOfile(n), cd(n), encoding(n), info(n)
KEYWORDSfile, script 0
Johanes Gumabo
Data Size : 8,529 byte
man-source.nBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 202,913
Visitor ID : :
Visitor IP : 18.220.7.116 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_escape_sequence_block|26|(null)|(null)|-1|141) (parse_manual_page_|249|source.n|285/141|══─}─══|.══─}─══
) (htmlprn|149|source.n|285/141|.══─}─══|.══─}─══
) (rof_escape_sequence|91|source.n|285/142|\}|.\}
) (parse_manual_page_|249|source.n|285/142|\}|.\}
)