/escape

Function usage:

ESCAPE(metacharacters, string)

Command usage:

/ESCAPE metacharacters string


Echoes (in command form) or returns (in function form) string, with any metacharacters or '\' characters contained in string preceded by a '\' character.

Example:

/def blue = /def -aCblue -t"$(/escape " %*)"
/blue * pages, "*"

When the second command executes, it will expand to:

/def -aCblue -t"* pages, \"*\""

See: evaluation


Back to index
Back to tf home page
Copyright © 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys