diff --git a/cccli/commands.py b/cccli/commands.py index f359a3e83f4d9b4db88ce6376d5d1a63c622cfb8..a8825b3833af7d78f63f6ec6c333365123049218 100644 --- a/cccli/commands.py +++ b/cccli/commands.py @@ -40,7 +40,7 @@ class Commands(object): raise cmdBadName() # find right commands to call if argv[0] not in self: - matchlist = [ x for x in self if re.match("%s.+"%argv[0], x) ] + matchlist = [ x for x in self if re.match("%s.+"%re.escape(argv[0]), x) ] if len(matchlist) == 1: argv[0] = matchlist[0] else: