unixshellstring(

TEXT
)


The unixshellstring( function encodes text for use as a parameter to a unix shell command.


Parameters

This function has one parameter:

text – text to be encoded.


Description

This function encodes text for use as a parameter to a unix shell command. Any special characters in the text are “escaped” by putting a backslash () in front of the special character.

unixshellstring("Panorama's $Shell /Test Strin#g!?")
    ☞ Panorama\'s\ \$Shell\ /Test\ Strin\#g\!\?

Note: This function has special treatment for the tilde (~) character. If the tilde is the first character of the text, it is not escaped. A tilde in another other position is escaped.


See Also


History

VersionStatusNotes
10.2UpdatedThis function doesn't escape the ~ symbol if it is the first character in the string.
10.0No ChangeCarried over from Panorama 6.0.