The quote() function encloses a string in the specified character. It also inserts a backslash character (\) in front of any special characters that are contained in the string, to indicate that these characters should be taken literally (that is, treated as special characters). The quote() function is useful when parsing arguments into commands that are shell scripts.

For more information on special characters, please see Other Programming Considerations.

result = quote (string1, quotechar);
string1 Required. The string to enclose in the specified quotechar
quotechar Required. The character to use as the enclosing character

result contains the quoted string.

In the example:

result = quote ("Hello, Hello, Hello", "*");

result is assigned:

"*Hello, Hello, Hello*"