rezplugins.shell.tcsh

TCSH shell

class rezplugins.shell.tcsh.TCSH[source]

Bases: rezplugins.shell.csh.CSH

escape_string(value, is_path=False)[source]

Escape a string.

Escape the given string so that special characters (such as quotes and whitespace) are treated properly. If value is a string, assume that this is an expandable string in this interpreter.

Note that is_path provided because of the special case where a path-like envvar is set. In this case, path normalization, if it needs to occur, has to be part of the string escaping process.

Note

This default implementation returns the string with no escaping applied.

Parameters
  • value (str or EscapedString) – String to escape.

  • is_path (bool) – True if the value is path-like.

Returns

The escaped string.

Return type

str

classmethod name()[source]

Plugin name.

rezplugins.shell.tcsh.register_plugin()[source]