Unix/Linux Go Back    

RedHat 9 (Linux i386) - man page for subst (redhat section n)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

subst(n)			      Tcl Built-In Commands				 subst(n)


       subst - Perform backslash, command, and variable substitutions

       subst ?-nobackslashes? ?-nocommands? ?-novariables? string

       This command performs variable substitutions, command substitutions, and backslash substi-
       tutions on its string argument and returns the fully-substituted  result.   The	substitu-
       tions  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 corre-
       sponding substitutions are not performed.  For example, if -nocommands  is  specified,  no
       command	substitution is performed:  open and close brackets are treated as ordinary char-
       acters 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
	      set a 44
	      subst {xyz {$a}}
       returns ``xyz {44}'', not ``xyz {$a}''.


       backslash substitution, command substitution, variable substitution

Tcl					       7.4					 subst(n)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 11:54 AM.