From a29751463b36c36b368a51b7433440931fbf8e9a Mon Sep 17 00:00:00 2001 From: David Jones Date: Thu, 8 Mar 2012 21:01:18 +0000 Subject: [PATCH] Add secondary prompt to RE match --- dexy/filters/pexpect_filters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dexy/filters/pexpect_filters.py b/dexy/filters/pexpect_filters.py index 338f51ff..21a9cd71 100644 --- a/dexy/filters/pexpect_filters.py +++ b/dexy/filters/pexpect_filters.py @@ -259,10 +259,11 @@ class AbstractShell(PexpectReplFilter): EXECUTABLE = None INPUT_EXTENSIONS = [".txt", ".sh"] OUTPUT_EXTENSIONS = ['.sh-session'] - PROMPT_REGEX = r"\d*[#$]" + PROMPT_REGEX = r"\d*[#$>]" INITIAL_PROMPT = PROMPT_REGEX TRIM_PROMPT = PROMPT_REGEX PS1 = "$ " + PS2 = "> " # TODO Fix hanging on # comments in code class KshInteractiveStrictFilter(AbstractShell):