Add support for ~ shell special character
Change-Id: If8a2de3987d261697a8d31f6761d109dc7de7e66
This commit is contained in:
parent
5395792300
commit
ebe62cc404
@ -45,7 +45,7 @@ def shell_command(command: ShellCommandType,
|
|||||||
return ShellCommand(str(a) for a in command)
|
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
|
_is_quoted = re.compile(r'(^\'.*\'$)|(^".*"$)', re.ASCII).search
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ from tobiko.shell import sh
|
|||||||
from tobiko.tests import unit
|
from tobiko.tests import unit
|
||||||
|
|
||||||
|
|
||||||
SPECIAL_CHARS = r'@&%+=:,.;<>/-()[]*|'
|
SPECIAL_CHARS = r'@&%+=:,.;<>/-()[]*|~'
|
||||||
|
|
||||||
|
|
||||||
class ShellCommandTest(unit.TobikoUnitTest):
|
class ShellCommandTest(unit.TobikoUnitTest):
|
||||||
|
Loading…
Reference in New Issue
Block a user