1mNAME0m
       subst - Perform backslash, command, and variable substitutions

1mSYNOPSIS0m
       1msubst 22m?1m-nobackslashes22m? ?1m-nocommands22m? ?1m-novariables22m? 4mstring0m


1mDESCRIPTION0m
       This  command  performs  variable substitutions, command substitutions,
       and backslash substitutions on its  4mstring24m  argument  and  returns  the
       fully-substituted  result.   The substitutions are performed in exactly
       the same way as for Tcl commands.  As a result, the 4mstring24m argument  is
       actually substituted twice, once by the Tcl parser in the usual fashion
       for Tcl commands, and again by the 4msubst24m command.

       If any of the 1m-nobackslashes22m, 1m-nocommands22m, or 1m-novariables  22mare  speci-
       fied,  then  the  corresponding  substitutions  are not performed.  For
       example, if 1m-nocommands 22mis specified, no command substitution  is  per-
       formed:   open  and  close  brackets are treated as ordinary characters
       with no special interpretation.

       Note: when it performs its substitutions, 4msubst24m does not give any  spe-
       cial  treatment  to  double  quotes  or curly braces.  For example, the
       script
              1mset a 440m
              1msubst {xyz {$a}}0m
       returns ``1mxyz {44}22m'', not ``1mxyz {$a}22m''.


1mSEE ALSO0m
       eval(n)


1mKEYWORDS0m
