Add support for ~ shell special character

Change-Id: If8a2de3987d261697a8d31f6761d109dc7de7e66
changes/86/799186/3
Federico Ressi 2 years ago
parent 5395792300
commit ebe62cc404

@ -45,7 +45,7 @@ def shell_command(command: ShellCommandType,
return ShellCommand(str(a) for a in command)
_find_unsafe = re.compile(r'[^\w@&%+=:,.;<>/\-()\[\]|*]', re.ASCII).search
_find_unsafe = re.compile(r'[^\w@&%+=:,.;<>/\-()\[\]|*~]', re.ASCII).search
_is_quoted = re.compile(r'(^\'.*\'$)|(^".*"$)', re.ASCII).search

@ -20,7 +20,7 @@ from tobiko.shell import sh
from tobiko.tests import unit
SPECIAL_CHARS = r'@&%+=:,.;<>/-()[]*|'
SPECIAL_CHARS = r'@&%+=:,.;<>/-()[]*|~'
class ShellCommandTest(unit.TobikoUnitTest):

Loading…
Cancel
Save