Add support for ~ shell special character

Change-Id: If8a2de3987d261697a8d31f6761d109dc7de7e66
This commit is contained in:
Federico Ressi 2021-07-02 11:31:01 +02:00
parent 5395792300
commit ebe62cc404
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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