Merge branch 'escape-single-quotes' into main

This prevents single quotes in the prompt from generating a parse error.
This commit is contained in:
Lincoln Stein 2022-08-24 11:21:09 -04:00
commit decd1a58d2

View File

@ -109,6 +109,10 @@ def main_loop(t2i,parser,log,infile):
if command.startswith(('#','//')):
continue
# before splitting, escape single quotes so as not to mess
# up the parser
command = command.replace("'","\\'")
try:
elements = shlex.split(command)
except ValueError as e: