From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: [PATCH 3/4] t/t4018: test whether the word_regex patterns compile Date: Thu, 9 Sep 2010 15:59:04 -0400 Message-ID: <20100909195904.GE1146@sigill.intra.peff.net> References: <20100909192331.GD32508@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: git@vger.kernel.org, Brandon Casey To: Brandon Casey X-From: git-owner@vger.kernel.org Thu Sep 09 21:59:02 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.69) (envelope-from ) id 1OtnGw-0003vN-2h for gcvg-git-2@lo.gmane.org; Thu, 09 Sep 2010 21:59:02 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756168Ab0IIT6x (ORCPT ); Thu, 9 Sep 2010 15:58:53 -0400 Received: from xen6.gtisc.gatech.edu ([143.215.130.70]:40294 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755552Ab0IIT6w (ORCPT ); Thu, 9 Sep 2010 15:58:52 -0400 Received: (qmail 21380 invoked by uid 111); 9 Sep 2010 19:58:51 -0000 Received: from 99-108-226-0.lightspeed.iplsin.sbcglobal.net (HELO sigill.intra.peff.net) (99.108.226.0) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.40) with ESMTPA; Thu, 09 Sep 2010 19:58:51 +0000 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Thu, 09 Sep 2010 15:59:04 -0400 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, Sep 09, 2010 at 02:39:32PM -0500, Brandon Casey wrote: > > Definitely something we should be doing, but one nit: > > > >> diff --git a/t/t4018-diff-funcname.sh b/t/t4018-diff-funcname.sh > >> index 61de8a2..620cd02 100755 > >> --- a/t/t4018-diff-funcname.sh > >> +++ b/t/t4018-diff-funcname.sh > >> @@ -40,6 +40,11 @@ do > >> ! ( git diff --no-index Beer.java Beer-correct.java 2>&1 | > >> grep "fatal" > /dev/null ) > >> ' > >> + test_expect_success "builtin $p wordRegex pattern compiles" ' > >> + ! ( git diff --no-index --word-diff \ > >> + Beer.java Beer-correct.java 2>&1 | > >> + grep "fatal" > /dev/null ) > >> + ' > > > > Why the subshell? Shouldn't just testing the pipeline outcome work? > > Notice the similarity between the added lines and the lines just > above them? Where were you when I submitted those? :) I did. I almost said "obviously you copied from above, but that is no excuse". So let me say it now. :) -Peff