Fix procbot.esc() by escaping the escaper

So we can escape the escapee. While we escape. YO DAWG.

Signed-off-by: Neale Pickett <neale@woozle.org>
This commit is contained in:
William Vu 2015-04-14 03:21:09 -05:00 committed by Neale Pickett
parent 4060898fa5
commit f516b2dd9b
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class Runner(async_proc.process_dispatcher):
def esc(arg):
"Shell-escape an argument"
return "'" + arg.replace("'", "'\''") + "'"
return "'" + arg.replace("'", "'\\''") + "'"
def lesc(args):