From: Don Armstrong Date: Tue, 30 Jun 2009 15:21:21 +0000 (-0700) Subject: Allow trailinng periods after the control stop commands (closes: X-Git-Tag: release/2.6.0~461^2~9 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f4eae64b082830c81cde07e47b64fdb52ed9253d;p=debbugs.git Allow trailinng periods after the control stop commands (closes: #517834) --- 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) {