⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 source.n

📁 tcl是工具命令语言
💻 N
字号:
'\"'\" Copyright (c) 1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\" Copyright (c) 2000 Scriptics Corporation.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: source.n,v 1.5 2000/09/07 14:27:51 poenitz Exp $'\" .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..PP.VS 8.4The end-of-file character for files is '\\32' (^Z) for all platforms.The source command will read files up to this character.  Thisrestriction does not exist for the \fBread\fR or \fBgets\fR 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 Tclinterpreter into ``^Z''..VE 8.4.PPThe \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 "SEE ALSO"file(n), cd(n).SH KEYWORDSfile, script

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -