From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=0.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id B7B7C1F670 for ; Wed, 23 Feb 2022 21:08:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242233AbiBWVHs (ORCPT ); Wed, 23 Feb 2022 16:07:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242209AbiBWVHq (ORCPT ); Wed, 23 Feb 2022 16:07:46 -0500 Received: from pb-smtp20.pobox.com (pb-smtp20.pobox.com [173.228.157.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BCF611177 for ; Wed, 23 Feb 2022 13:07:17 -0800 (PST) Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id DCFBF18B1D8; Wed, 23 Feb 2022 16:07:15 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=z1Xfaot30VxcIhnVGnoAazhbwaJI8nuH0ogBR/ dHmvc=; b=RSU5LxtiMrVuCf6itxCKTNZQmk06jZqNZTx7+vFg9ZqnFL0Ks0mBhJ xunhkpykgUlinbvIW7vSeI0Uq+EyKltFesRVQ2PSjrGNRZt/q7o/rUOb2FgxUsPu wYRPzI+LqSKjSIK5kfHwv8Qb3fpwRJg/KYVdHWH3JCjQURJCSKhzQ= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id D525418B1D7; Wed, 23 Feb 2022 16:07:15 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.82.80.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 47E1E18B1D6; Wed, 23 Feb 2022 16:07:13 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: Christian Couder Cc: Shubham Mishra , git , Taylor Blau Subject: Re: [PATCH 1/2] t0001: remove pipes References: <20220222114313.14921-1-shivam828787@gmail.com> <20220222114313.14921-2-shivam828787@gmail.com> Date: Wed, 23 Feb 2022 13:07:12 -0800 In-Reply-To: (Christian Couder's message of "Tue, 22 Feb 2022 21:32:30 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 9285BA86-94EC-11EC-8A35-C85A9F429DF0-77302942!pb-smtp20.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Christian Couder writes: > Only the exit code of the command before the pipe is ignored. > > Also it's ok to use pipes if the command before the pipe is not `git`. > We trust regular commands to just work and we test only `git`. Both very good points. So ... >> - find .git/worktrees -print | sort >expected && >> + find .git/worktrees -print >tmp && sort tmp >expected && > > Please put the `find` and `sort` commands on 2 different lines when > they are separated with &&. We do not want to split this pipeline into two commands.