Copyright (C) 2000-2012 |
Manpages substSection: Tcl Built-In Commands (n)Updated: 7.4 Index Return to Main Contents NAMEsubst - Perform backslash, command, and variable substitutionsSYNOPSISsubst ?-nobackslashes? ?-nocommands? ?-novariables? stringDESCRIPTIONThis command performs variable substitutions, command substitutions, and backslash substitutions on its string argument and returns the fully-substituted result. The substitutions are performed in exactly the same way as for Tcl commands. As a result, the string argument is actually substituted twice, once by the Tcl parser in the usual fashion for Tcl commands, and again by the subst command. If any of the -nobackslashes, -nocommands, or -novariables are specified, then the corresponding substitutions are not performed. For example, if -nocommands is specified, no command substitution is performed: open and close brackets are treated as ordinary characters with no special interpretation. Note: when it performs its substitutions, subst does not give any special treatment to double quotes or curly braces. For example, the script
SEE ALSOeval(n)KEYWORDSbackslash substitution, command substitution, variable substitution
IndexThis document was created by man2html, using the manual pages. Time: 10:24:57 GMT, April 24, 2024 |