subst.n

来自「linux系统下的音频通信」· N 代码 · 共 49 行

N
49
字号
'\"'\" Copyright (c) 1994 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: @(#) subst.n 1.9 96/03/25 20:24:17'\" .so man.macros.TH subst n 7.4 Tcl "Tcl Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEsubst \- Perform backslash, command, and variable substitutions.SH SYNOPSIS\fBsubst \fR?\fB\-nobackslashes\fR? ?\fB\-nocommands\fR? ?\fB\-novariables\fR? \fIstring\fR.BE.SH DESCRIPTION.PPThis command performs variable substitutions, command substitutions,and backslash substitutions on its \fIstring\fR argument andreturns the fully-substituted result.The substitutions are performed in exactly the same way as forTcl commands.As a result, the \fIstring\fR argument is actually substituted twice,once by the Tcl parser in the usual fashion for Tcl commands, andagain by the \fIsubst\fR command..PPIf any of the \fB\-nobackslashes\fR, \fB\-nocommands\fR, or\fB\-novariables\fR are specified, then the corresponding substitutionsare not performed.For example, if \fB\-nocommands\fR is specified, no command substitutionis performed:  open and close brackets are treated as ordinary characterswith no special interpretation..PPNote: when it performs its substitutions, \fIsubst\fR does notgive any special treatment to double quotes or curly braces.  Forexample, the script.CS\fBset a 44subst {xyz {$a}}\fR.CEreturns ``\fBxyz {44}\fR'', not ``\fBxyz {$a}\fR''..SH KEYWORDSbackslash substitution, command substitution, variable substitution

⌨️ 快捷键说明

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