fix(bin/linja): fix some file name escaping

This commit is contained in:
Sebastian Ullrich 2016-12-10 21:56:42 +01:00
parent 3e3ce6b8ca
commit 98fa04b1ff

View file

@ -309,7 +309,7 @@ def find_file_upward(name, path = os.getcwd()):
return None
def escape_ninja_char(name):
return name.replace("$", "$$").replace(":", "$:").replace(" ", "$ ")
return name.replace("$", "$$").replace(":", "$:").replace(" ", "$ ").replace("&", "$&")
def normalize_drive_name(name):
if platform.system() == "Windows":
@ -414,7 +414,7 @@ def get_lean_options(args):
if args.to_axiom:
args.lean_options.append("--to_axiom")
if args.cache:
args.lean_options += ["-c", '%s' % args.cache]
args.lean_options += ["-c", '"%s"' % args.cache]
if args.lean_config_option:
for item in args.lean_config_option:
args.lean_options.append("-D" + item)