From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Sixt Subject: Re: [PATCH 09/18] t3404: Test the commit count in commit messages generated by "rebase -i" Date: Thu, 14 Jan 2010 08:44:54 +0100 Message-ID: <4B4ECB76.3030009@viscovery.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org, gitster@pobox.com, Johannes.Schindelin@gmx.de To: Michael Haggerty X-From: git-owner@vger.kernel.org Thu Jan 14 08:45:17 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.50) id 1NVKOL-0003fV-Dd for gcvg-git-2@lo.gmane.org; Thu, 14 Jan 2010 08:45:17 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755834Ab0ANHpD (ORCPT ); Thu, 14 Jan 2010 02:45:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755817Ab0ANHpB (ORCPT ); Thu, 14 Jan 2010 02:45:01 -0500 Received: from lilzmailso01.liwest.at ([212.33.55.23]:46372 "EHLO lilzmailso01.liwest.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755143Ab0ANHpA (ORCPT ); Thu, 14 Jan 2010 02:45:00 -0500 Received: from cpe228-254.liwest.at ([81.10.228.254] helo=theia.linz.viscovery) by lilzmailso01.liwest.at with esmtpa (Exim 4.69) (envelope-from ) id 1NVKNz-0002CQ-JY; Thu, 14 Jan 2010 08:44:55 +0100 Received: from [127.0.0.1] (J6T.linz.viscovery [192.168.1.95]) by theia.linz.viscovery (Postfix) with ESMTP id BC39B1660F; Thu, 14 Jan 2010 08:44:54 +0100 (CET) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-Spam-Score: 1.9 (+) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Michael Haggerty schrieb: > + test -z "$EXPECT_HEADER_COUNT" || > + test "$EXPECT_HEADER_COUNT" = $(sed -n '1s/^# This is a combination of \(.*\) commits\./\1/p' < "$1") || > + exit Is an empty $EXPECT_HEADER_COUNT an error? I suppose it isn't; therefore, you must put the second 'test' and the 'exit' in a brace group. You should also put the $(sed) in double-quotes. -- Hannes