[PATCH] config: add quoting to fix IFS bug
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 2 Jun 2012 18:16:01 +0000 (11:16 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:33 +0000 (09:47 -0800)
d8/37bd1e646961516b905e18dfb1e5ab298a9d73 [new file with mode: 0644]

diff --git a/d8/37bd1e646961516b905e18dfb1e5ab298a9d73 b/d8/37bd1e646961516b905e18dfb1e5ab298a9d73
new file mode 100644 (file)
index 0000000..414ae00
--- /dev/null
@@ -0,0 +1,76 @@
+Return-Path: <jrollins@finestructure.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 154A0431FB6\r
+       for <notmuch@notmuchmail.org>; Sat,  2 Jun 2012 11:16:07 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id gYv6-jAggg0v for <notmuch@notmuchmail.org>;\r
+       Sat,  2 Jun 2012 11:16:05 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 86929431FAF\r
+       for <notmuch@notmuchmail.org>; Sat,  2 Jun 2012 11:16:05 -0700 (PDT)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 0717966E0131\r
+       for <notmuch@notmuchmail.org>; Sat,  2 Jun 2012 11:16:05 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (unknown [76.89.192.57])\r
+       (Authenticated sender: jrollins)\r
+       by earth-doxen-submit (Postfix) with ESMTP id 42F6B66E00ED\r
+       for <notmuch@notmuchmail.org>; Sat,  2 Jun 2012 11:16:03 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id EA8E03A7; Sat,  2 Jun 2012 11:16:01 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH] config: add quoting to fix IFS bug\r
+Date: Sat,  2 Jun 2012 11:16:01 -0700\r
+Message-Id: <1338660961-13760-1-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.10\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 02 Jun 2012 18:16:07 -0000\r
+\r
+Without proper quoting the DEFAULT_IFS was getting set incorrectly,\r
+which was causing problems with the storage of some variables later in\r
+the script.  Quoting fixes the problem.\r
+---\r
+Thanks to Tomi for the inspiration for this fix.  I don't know how I\r
+missed such a simple solution initially.\r
+\r
+ configure |    2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/configure b/configure\r
+index 5602be2..3fad424 100755\r
+--- a/configure\r
++++ b/configure\r
+@@ -1,7 +1,7 @@\r
+ #! /bin/sh\r
+ \r
+ # Store original IFS value so it can be changed (and restored) in many places.\r
+-readonly DEFAULT_IFS=$IFS\r
++readonly DEFAULT_IFS="$IFS"\r
+ \r
+ srcdir=$(dirname "$0")\r
+ \r
+-- \r
+1.7.10\r
+\r