From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 83703431FD9 for ; Sun, 26 May 2013 01:46:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6v24niWmhWd8 for ; Sun, 26 May 2013 01:46:01 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id 76F69431FC9 for ; Sun, 26 May 2013 01:46:01 -0700 (PDT) Received: by guru.guru-group.fi (Postfix, from userid 501) id 2363110014D; Sun, 26 May 2013 11:45:57 +0300 (EEST) From: Tomi Ollila To: notmuch@notmuchmail.org Subject: =?UTF-8?B?djIgb2YgLS1zdGRlcnI9RklMRSBwYXRjaGVzIA==?= Date: Sun, 26 May 2013 11:45:50 +0300 Message-Id: <1369557954-13439-1-git-send-email-tomi.ollila@iki.fi> X-Mailer: git-send-email 1.8.0 Cc: tomi.ollila@iki.fi X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 May 2013 08:46:10 -0000 This is version 2 of id:1369332362-4719-1-git-send-email-tomi.ollila@iki.fi NEWS | 6 ++++++ man/man1/notmuch.1 | 7 +++++++ notmuch-client.h | 1 + notmuch.c | 32 ++++++++++++++++++++++++++++++++ test/help-test | 9 +++++++++ 5 files changed, 55 insertions(+) diffdiff of the changes since v1: diff --git a/notmuch.c b/notmuch.c index 77b5282..654a568 100644 --- a/notmuch.c +++ b/notmuch.c @@ -251,7 +251,8 @@ notmuch_command (notmuch_config_t *config, return 0; } -static int redirect_stderr (const char * stderr_file) +static int +redirect_stderr (const char * stderr_file) { if (strcmp (stderr_file, "-") == 0) { if (dup2 (STDOUT_FILENO, STDERR_FILENO) < 0) { diff --git a/test/help-test b/test/help-test index 8b77931..bd0111c 100755 --- a/test/help-test +++ b/test/help-test @@ -15,7 +15,6 @@ test_expect_equal "$(cat stderr)" " Sorry, % is not a known command. There's not much I can do to help." test_begin_subtest "notmuch --stderr=- help %" -notmuch --stderr=stderr help % test_expect_equal "$(notmuch --stderr=- help %)" " Sorry, % is not a known command. There's not much I can do to help."