From patchwork Thu Nov 7 18:51:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denton Liu X-Patchwork-Id: 11233593 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1DACF1599 for ; Thu, 7 Nov 2019 18:51:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F019121D79 for ; Thu, 7 Nov 2019 18:51:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NtzN5dCO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727699AbfKGSva (ORCPT ); Thu, 7 Nov 2019 13:51:30 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33008 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727616AbfKGSv3 (ORCPT ); Thu, 7 Nov 2019 13:51:29 -0500 Received: by mail-pl1-f194.google.com with SMTP id ay6so2162080plb.0 for ; Thu, 07 Nov 2019 10:51:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=olVodVSAYEvL08uENA+7uUiU4nLw+LOIVLFg0xxOF84=; b=NtzN5dCOUtNdcaPgh4EEbihZmGoAc/D12DrEIZWQRNDmuMjbpna1H8YBDG1+YFCCfI GAGgplAMtxmp/VDbOA0wgbLuqp2ESOsmhGucTgJQy0S+7u7KcgIP2FFE7m9Crn8kIt3z Qgg2sNuBunGA31rZu5At71rCucVNcLecHWlulcju/Enxp40yc6vyGxtJhYc7DmsVFVN1 X+4OAEZ1iLjCRDuOWi31CEhjbTbgX3jY39G8F3eGQ2o9PzAcBlYGUvjcDT97weYFLiy/ Apxr/yU81gPhWugrLCAN/rlSsDvtCAEeStB+mt+RUWnOj1WsabTnB0pAU3Lwba7XNb2S 28rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=olVodVSAYEvL08uENA+7uUiU4nLw+LOIVLFg0xxOF84=; b=ravyOX2Pgt+KTHXQTHgF4vhseTgmcaM2eUEqnXlXhefsnkf1JER7vP7nZf0hJtQg1X /6zLf5MKWeBXJXvPQdI0umfN1zoCwYLAOVYHZbpJaoqeEAkl3ucdUSu7MXFd2AgRS05H JjA3K+PfTHSsGCEKe9OfWBq0eiir+KIQcM8EC5j79+0SzVSMXrEahepZanXx+95GJkv1 QQOPocm3yxMYNE73GCnLHQbX07B7pTcjEz/39iDuYa5fBkgIsuPWZmLTD1hDxblBrOxQ N2x1eYzFryRj0AeH3YAsT6OM93GGy2fXPdAXyqImJZOcd7gooyT2M7cMDOW5WWs2uHPD 0N9g== X-Gm-Message-State: APjAAAWH653TUfOAUcg7e4RzDkfUfzLhKd6wYq31lbKAUYRzzF0vOnFF jHTr71qbrxjl6+cg9qepb1LSNtq1 X-Google-Smtp-Source: APXvYqxc/Dk99cjdgRM9hFbkkRSCok5rT3x2ZswaPilJIIVy88Jsam3kolWbZPb+XGGqmhebGL7j7w== X-Received: by 2002:a17:902:467:: with SMTP id 94mr5347461ple.170.1573152688692; Thu, 07 Nov 2019 10:51:28 -0800 (PST) Received: from generichostname ([204.14.239.83]) by smtp.gmail.com with ESMTPSA id q199sm3152535pfq.147.2019.11.07.10.51.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 10:51:27 -0800 (PST) Date: Thu, 7 Nov 2019 10:51:26 -0800 From: Denton Liu To: Git Mailing List Cc: Eric Sunshine , Johannes Sixt , SZEDER =?utf-8?b?R8OhYm9y?= , Junio C Hamano Subject: [PATCH v4 04/14] t5520: let sed open its own input Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org We were using a redirection operator to feed input into sed. However, since sed is capable of opening its own files, make sed open its own files instead of redirecting input into it. Signed-off-by: Denton Liu --- t/t5520-pull.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh index a3de2e19b6..55560ce3cd 100755 --- a/t/t5520-pull.sh +++ b/t/t5520-pull.sh @@ -5,7 +5,7 @@ test_description='pulling into void' . ./test-lib.sh modify () { - sed -e "$1" <"$2" >"$2.x" && + sed -e "$1" "$2" >"$2.x" && mv "$2.x" "$2" }