From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 1BAD91F44D for ; Tue, 5 Mar 2024 22:29:27 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=sasl header.b=bGIboWHw; dkim-atps=neutral Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 327A21C218C2 for ; Tue, 5 Mar 2024 22:29:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B1DB12D205; Tue, 5 Mar 2024 22:29:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=pobox.com header.i=@pobox.com header.b="bGIboWHw" Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FBFB12D1E3 for ; Tue, 5 Mar 2024 22:29:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.108.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709677757; cv=none; b=IMi7ngY7ots+1be7qECdIpq+9EGoss+NAWVmmv4MUcPWYxuxXCsm99gbeurrsJS9GX5ccngN2lK6NWbKYMmks+tTe/n6P8/3RxWQRTELslLZi4jYQa20ArVyxmEn98wGGwxZvWZ8ow7y4rBhwiYWKPPQRIIc12ECcwpR1izvduo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709677757; c=relaxed/simple; bh=GXJu/p3S5ODvh69lxLTqiA8kFtpQ+z8v6ydoWtYmPVc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ccMnPL30YKXmQ5XArIj5RAyxQK73p7qLw78bEqr94oROUKYP48sgV2NxYSLBLr7yjyQHZb1njIqpxhUVFmOmUpunHx3VKpLOK+R08GAvA0Eqz4KHDCp0y/fyK239umwcsUaiW5l42vuaXa1ubipGJTWfFjnLnx61jrmLLI2vrTM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (1024-bit key) header.d=pobox.com header.i=@pobox.com header.b=bGIboWHw; arc=none smtp.client-ip=64.147.108.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 306061D04C1; Tue, 5 Mar 2024 17:29:08 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=GXJu/p3S5ODvh69lxLTqiA8kFtpQ+z8v6ydoWt YmPVc=; b=bGIboWHwfa32dIHNHThSvSn3haarJCPUyyDw2gHNHAl3Dxo7DsyuxS j14vJ23HvOTh0h6Vt3XHcrpqxYeFEEu3iGP/EzBuu++T4I8Mfy3ifSr6yMhnW0mH JY2bWtKwFo8/q8gOqAyadfSwiAUl9j73y9u9pCkGPGPQ24vjX1uy4= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 2753D1D04C0; Tue, 5 Mar 2024 17:29:08 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.125.185.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 74CAE1D04BF; Tue, 5 Mar 2024 17:29:07 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: "Beat Bolli" Cc: git@vger.kernel.org, Beat Bolli Subject: Re: [PATCH 05/22] t/perf: avoid redundant use of cat In-Reply-To: <20240305212533.12947-6-dev+git@drbeat.li> (Beat Bolli's message of "Tue, 5 Mar 2024 22:25:04 +0100") References: <20240305212533.12947-1-dev+git@drbeat.li> <20240305212533.12947-6-dev+git@drbeat.li> Date: Tue, 05 Mar 2024 14:29:06 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: C7B474E0-DB3F-11EE-9907-25B3960A682E-77302942!pb-smtp2.pobox.com "Beat Bolli" writes: > Take care to redirect stdin, otherwise the output of wc would also contain > the file name. > > Signed-off-by: Beat Bolli > --- > t/perf/repos/inflate-repo.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/t/perf/repos/inflate-repo.sh b/t/perf/repos/inflate-repo.sh > index fcfc992b5b02..412e4b450b16 100755 > --- a/t/perf/repos/inflate-repo.sh > +++ b/t/perf/repos/inflate-repo.sh > @@ -33,7 +33,7 @@ do > done > > git ls-tree -r HEAD >GEN_src_list > -nr_src_files=$(cat GEN_src_list | wc -l) > +nr_src_files=$(wc -l > src_branch=$(git symbolic-ref --short HEAD)