📄 source.n
字号:
'\"'\" Copyright (c) 1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) source.n 1.8 97/10/31 12:51:10'\" .so man.macros.TH source n "" Tcl "Tcl Built-In Commands".BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMEsource \- Evaluate a file or resource as a Tcl script.SH SYNOPSIS\fBsource \fIfileName\fR.sp\fBsource\fR \fB\-rsrc \fIresourceName \fR?\fIfileName\fR?.sp\fBsource\fR \fB\-rsrcid \fIresourceId \fR?\fIfileName\fR?.BE.SH DESCRIPTION.PPThis command takes the contents of the specified file or resourceand passes it to the Tcl interpreter as a text script. The returnvalue from \fBsource\fR is the return value of the last commandexecuted in the script. If an error occurs in evaluating the contentsof the script then the \fBsource\fR command will return that error.If a \fBreturn\fR command is invoked from within the script then theremainder of the file will be skipped and the \fBsource\fR commandwill return normally with the result from the \fBreturn\fR command.The \fI\-rsrc\fR and \fI\-rsrcid\fR forms of this command are onlyavailable on Macintosh computers. These versions of the commandallow you to source a script from a \fBTEXT\fR resource. You may specifywhat \fBTEXT\fR resource to source by either name or id. By default Tclsearches all open resource files, which include the currentapplication and any loaded C extensions. Alternatively, you mayspecify the \fIfileName\fR where the \fBTEXT\fR resource can be found..SH KEYWORDSfile, script
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -