From patchwork Thu Oct 20 12:07:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 1692448 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=daynix-com.20210112.gappssmtp.com header.i=@daynix-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=AU81/39X; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MtRFT58p3z23jk for ; Thu, 20 Oct 2022 23:08:13 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id C1DDD3CB17A for ; Thu, 20 Oct 2022 14:08:10 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id BA7D03CB19B for ; Thu, 20 Oct 2022 14:08:02 +0200 (CEST) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 2893C1000466 for ; Thu, 20 Oct 2022 14:08:01 +0200 (CEST) Received: by mail-pf1-x42d.google.com with SMTP id y1so20074582pfr.3 for ; Thu, 20 Oct 2022 05:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/ae0yhJSINWSuQswycdp0xgfUq3qQ8JORRsbYicGiEA=; b=AU81/39XghjAuVnKffZPSyhU8od/eNabwPizN3WwxDo502zhhTPwTl2e9e8ZZ16h3G 30DZR/DFkRFVAQewYgtGD+3jirox73EoADwgtjjzpI5q/0tneEP+NLyGriJQZaGQXvBk g6up2MGyA3a63lgSCCXNU7UFgrIuRDe6jAurM0fIAAd99NhM/hg7BdBZyghwNi80aYrM pUxIIP+8ZFN8/E3dWUnVKvTEJSxUkKwC0LKtNEN0+crssALKxM5D4c/eW8eSy4w6dCEC h0BnUQPwCaHBMaAn34TMr0rSoJa+obZ6DfivEZn9b1h5B8nHbO8H7OjX5Zk2Y8pcqG4S zPOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/ae0yhJSINWSuQswycdp0xgfUq3qQ8JORRsbYicGiEA=; b=MnD6DClmcHmKGwzPFh0ERJa47V4y408UBFZ/GGbmYA1OSd+Ognl3jgZWRoC0mUsJzm sazEqxD7FnPEfmiLtP9rsOiQMQ+uwp0M/sLFRBDvkstx0qq1u9YPeKy4MffheaZBuXOR Aq2OFfuMPCMTFDQgE8Gk4fcj1nYQbRs9pfny6slLmgjvpBMYIitvEguiFH4DEzvHgz1s H938K8OsuwKF5EGYt6atOdugSCbArK8gMgSRUYph6p5ErDxCc5WX04+3wNpOAJeDFXqG VkUEQaSZp0/MN51UhPspSb5/dMuDMCQJ3SjTLiEXciCejlwJpbYrQj2El/E7F9r/h5Rr 9bYg== X-Gm-Message-State: ACrzQf2jmCfiJYfE/HBXrc7joi2JUF7rAMt1Ct7w4NN9Ukl0f/KLzGZS kgUJwsespl3Bpb2rgn0/DCBZkpCsDEE6Gzpa X-Google-Smtp-Source: AMsMyM5pNZ+jc/6WJrR0d8WXzgbE0uuVNaetWihygjDOGRkWonFxf/OW0EswOkYL/hFRNB4X7b+NpQ== X-Received: by 2002:a63:e22:0:b0:458:cfe7:958 with SMTP id d34-20020a630e22000000b00458cfe70958mr11365363pgl.449.1666267679731; Thu, 20 Oct 2022 05:07:59 -0700 (PDT) Received: from fedora.flets-east.jp ([2400:4050:c360:8200:8ae8:3c4:c0da:7419]) by smtp.gmail.com with ESMTPSA id r27-20020aa79edb000000b005403b8f4bacsm13078947pfq.137.2022.10.20.05.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 05:07:59 -0700 (PDT) From: Akihiko Odaki To: Petr Vorel Date: Thu, 20 Oct 2022 21:07:38 +0900 Message-Id: <20221020120741.212671-3-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221020120741.212671-1-akihiko.odaki@daynix.com> References: <20221020120741.212671-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, SPF_HELO_NONE,SPF_NONE autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-4.smtp.seeweb.it Subject: [LTP] [PATCH 3/6] ftp/ftp01: Remove old-style command substitution X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yan Vugenfirer , Yuri Benditovich , ltp@lists.linux.it Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Suggested-by: Petr Vorel Signed-off-by: Akihiko Odaki --- testcases/network/tcp_cmds/ftp/ftp01.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testcases/network/tcp_cmds/ftp/ftp01.sh b/testcases/network/tcp_cmds/ftp/ftp01.sh index 2d61377b3..f8a3c98e8 100755 --- a/testcases/network/tcp_cmds/ftp/ftp01.sh +++ b/testcases/network/tcp_cmds/ftp/ftp01.sh @@ -79,8 +79,8 @@ do_test() echo $a $j echo quit } | ftp -nv $RHOST - SUM1=`ls -l $j | awk '{print $5}'` - SUM2=`ls -l $TST_NET_DATAROOT/$j | awk '{print $5}'` + SUM1="$(ls -l $j | awk '{print $5}')" + SUM2="$(ls -l $TST_NET_DATAROOT/$j | awk '{print $5}')" rm -f $j else { @@ -91,8 +91,8 @@ do_test() echo $a $j echo quit } | ftp -nv $RHOST - SUM1=`tst_rhost_run -c "sum $TST_TMPDIR/$j" -s | awk '{print $1}'` - SUM2=`sum $TST_NET_DATAROOT/$j | awk '{print $1}'` + SUM1="$(tst_rhost_run -c "sum $TST_TMPDIR/$j" -s | awk '{print $1}')" + SUM2="$(sum $TST_NET_DATAROOT/$j | awk '{print $1}')" tst_rhost_run -c "rm -f $TST_TMPDIR/$j" fi