Re: Inconsistent output from "notmuch search --output=<foo>"
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 24 Nov 2010 09:25:53 +0000 (10:25 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:36 +0000 (09:37 -0800)
f9/bada0ca075333e228949ee3c55528da27b47d8 [new file with mode: 0644]

diff --git a/f9/bada0ca075333e228949ee3c55528da27b47d8 b/f9/bada0ca075333e228949ee3c55528da27b47d8
new file mode 100644 (file)
index 0000000..6197fbc
--- /dev/null
@@ -0,0 +1,81 @@
+Return-Path: <sojkam1@fel.cvut.cz>\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 23763431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 24 Nov 2010 01:26:01 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 yFSpLyKOGgPh for <notmuch@notmuchmail.org>;\r
+       Wed, 24 Nov 2010 01:26:00 -0800 (PST)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id 498CE431FB5\r
+       for <notmuch@notmuchmail.org>; Wed, 24 Nov 2010 01:26:00 -0800 (PST)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 2CF2F3CFE75;\r
+       Wed, 24 Nov 2010 10:25:59 +0100 (CET)\r
+X-Virus-Scanned: IMAP AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+       by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
+       port 10044)\r
+       with ESMTP id i5oppBhz253u; Wed, 24 Nov 2010 10:25:53 +0100 (CET)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id D3D223CFE74;\r
+       Wed, 24 Nov 2010 10:25:53 +0100 (CET)\r
+Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id D8262FA004;\r
+       Wed, 24 Nov 2010 10:25:53 +0100 (CET)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.72)\r
+       (envelope-from <sojkam1@fel.cvut.cz>)\r
+       id 1PLBbt-0001m4-F8; Wed, 24 Nov 2010 10:25:53 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: Carl Worth <cworth@cworth.org>, notmuch@notmuchmail.org\r
+Subject: Re: Inconsistent output from "notmuch search --output=<foo>"\r
+In-Reply-To: <871v6b79s0.fsf@yoom.home.cworth.org>\r
+References: <871v6b79s0.fsf@yoom.home.cworth.org>\r
+User-Agent: Notmuch/0.5-11-g48b5e00 (http://notmuchmail.org) Emacs/23.2.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Wed, 24 Nov 2010 10:25:53 +0100\r
+Message-ID: <87oc9f9iou.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Wed, 24 Nov 2010 09:26:01 -0000\r
+\r
+On Wed, 24 Nov 2010, Carl Worth wrote:\r
+> Michal, in trying to add a test for that bug, I found that the current\r
+> test suite infrastructure can't catch it because the shell's $()\r
+> construct doesn't distinguish whether that final newline is present or\r
+> not. I don't see an easy way to fix this, (other than making all tests\r
+> put results into files and making test_expect_equal accept those\r
+> filenames). Do you see any easy fix?\r
+\r
+Unfortunately no. I did the same in\r
+id:"1289384870-15199-1-git-send-email-sojkam1@fel.cvut.cz"\r
+\r
+In fact I find much easier writing\r
+  cmd > output\r
+  cmd2 >> output\r
+than\r
+  output=$(cmd)\r
+  output+=$(cmd)\r
+\r
+-Michal\r