From f4eae64b082830c81cde07e47b64fdb52ed9253d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 30 Jun 2009 08:21:21 -0700 Subject: [PATCH] Allow trailinng periods after the control stop commands (closes: #517834) --- debian/changelog | 2 ++ scripts/service | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 971d13ef..832a5dbf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -251,6 +251,8 @@ debbugs (2.4.2~exp0) UNRELEASED; urgency=low * Properly html_escape un-processed parts in maybelink (closes: #530506) * Add urls to the bottom of all messages we send out (closes: #9596) * Allow for tag nnn = baz + foo - bar in service (closes: #505189) + * Allow trailinng periods after the control stop commands (closes: + #517834) -- Colin Watson Fri, 20 Jun 2003 18:57:25 +0100 diff --git a/scripts/service b/scripts/service index ff738789..3f05dc08 100755 --- a/scripts/service +++ b/scripts/service @@ -204,7 +204,7 @@ for ($procline=0; $procline<=$#bodylines; $procline++) { print {$transcript} "> $_\n"; next if m/^\s*\#/; $action= ''; - if (m/^stop\s*$/i || m/^quit\s*$/i || m/^--\s*$/ || m/^thank(?:s|\s*you)?\s*$/i || m/^kthxbye\s*$/i) { + if (m/^(?:stop|quit|--|thank(?:s|\s*you)?|kthxbye)\.*\s*$/i) { print {$transcript} "Stopping processing here.\n\n"; last; } elsif (m/^debug\s+(\d+)$/i && $1 >= 0 && $1 <= 1000) { -- 2.39.5