Subject: [sup-talk] patch: accept "yes" when asked so

From: [email-masked] (Tomas Pospisek ML)
Date: Thu, 30 Oct 2008 23:40:22 +0000

The patch below makes Sup accept a "yes" in addition to "y"

--- bin/sup.orig	2008-10-30 23:38:04.000000000 +0100
+++ bin/sup	2008-10-30 23:43:23.000000000 +0100
@@ -101,7 +101,7 @@
   h.say Index.fancy_lock_error_message_for(e)

   case h.ask("Should I ask that process to kill itself? ")
-  when /^\s*y\s*$/i
+  when /^\s*y(es)?\s*$/i
     h.say "Ok, suggesting seppuku..."
     FileUtils.touch Redwood::SUICIDE_FN
     sleep SuicideManager::DELAY * 2

---

From: [email-masked] (William Morgan)
Date: Sun, 02 Nov 2008 10:54:59 -0800

> The patch below makes Sup accept a "yes" in addition to "y"

Applied, thanks!
-- 
William <wmorgan-sup at masanjin.net>