ranger.ext.shell_escape | index ../../ranger/ext/shell_escape.py |
Functions to escape metacharacters of arguments for shell commands.
Functions | ||
|
Data | ||
META_CHARS = (' ', "'", '"', '`', '&', '|', ';', '$', '!', '(', ')', '[', ']', '<', '>', '\t') META_DICT = {'\t': '\\\t', ' ': r'\ ', '!': r'\!', '"': r'\"', '$': r'\$', '&': r'\&', "'": r"\'", '(': r'\(', ')': r'\)', ';': r'\;', ...} UNESCAPABLE = set(['\x00', '\x01', '\x02', '\x03', '\x04', '\x05', ...]) |