From 9edeec06329eb304f613fd7e178a7e17ea8abc74 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sat, 27 Sep 2003 20:02:40 +0000 Subject: [PATCH] *** empty log message *** --- cygwin/lily-wins.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cygwin/lily-wins.py b/cygwin/lily-wins.py index 5612b0b6b0..861668412c 100644 --- a/cygwin/lily-wins.py +++ b/cygwin/lily-wins.py @@ -30,8 +30,9 @@ def strip_extension (f, ext): return p + e def escape_shell (x): - return re.sub (r'''([^\\])([`'"\\\s])''', r'\1\\\2', x) - # help emacs'" broken python mode + return re.sub ("(\s|[`'\"\\\\])", r'\\\1',x) +# return re.sub (r'''([^\\])([`'"\\\s])''', r'\1\\\2', x) + # help emacs'" broken python mode debug (`sys.argv`) -- 2.39.5