From patchwork Sat Apr 6 12:38:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 13619806 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EADB04C84; Sat, 6 Apr 2024 12:40:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712407230; cv=none; b=bvISg0e2jRngDMDkEbJu7jGsRc6YuhR6An5dOxKW998eMBYU7J+26zyTAXXkPynruQQm4x4sGZPmD2SWLNQJXTeDuE1ebquW/ctgPHTvsiXnT4GaxW0ImTsYJcj/SJ3MToUkXXcUGhwg1+6J6q88XHrfqKYSFPQDVK9LVkTfDVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712407230; c=relaxed/simple; bh=FFft7ygHb4sNew26D/dJgFST62xDvyHht1DMBSvtx6w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qiiyn+CdW8+qDZTRzvO8PJpXKaWIBjCjIWKcowIzwVs+qIytzkTpO89S7CuQZVxf0goyeYhn2fhult6VoD+JWvldo3DJbfVLf/nNri76xLFAJA1obRZXC4qKGFr3T3WmBpeyXr4FrUId4MgmfXqCOXuvw4PRlEEA731HWafcIQU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ESjwq3m6; arc=none smtp.client-ip=209.85.216.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ESjwq3m6" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2a2e5d86254so1731584a91.1; Sat, 06 Apr 2024 05:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712407228; x=1713012028; darn=vger.kernel.org; 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=DtN3qRr/BJ5ghrfuBVmkjt4OGFVHY6H/GotGGIKP5Pw=; b=ESjwq3m6RGKkkfq4a/ddZX7IvMzSFEeywSpJXdmGS+OAgzA06GW/8mlGWyDPDkoSfO I1adyOH+qp5VYdFvnC0FUb5LcrIirDYrVDZ5cuYCR7DMlaRkLNGmvSa/AcmXdv3Dw/jG YyfFFVSDY/dRIr48YuQHm5Kxh7s+5E+Pr31vPyKEjHjqhy2IUrIj9pfFghVWTq6o5cOd mzsvetsXeYg/TAblGMdz24/gugd92GQD6jmw1HFWmoqsWJrRG1S7w/zFQDxVqPS8QMox OxfW3zH7KsVBMjOREO8wA+/NwUMhWYgEupuSq/kqSsCfBD4ks8URgHA6JKmqD/tx9Trx mNUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712407228; x=1713012028; 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=DtN3qRr/BJ5ghrfuBVmkjt4OGFVHY6H/GotGGIKP5Pw=; b=eaM5tngs2Nz9SkljKk/a/Nl2YZNTSFMheGe1Kayxntj1a8wryg2g6DK4/q8gae61fW 1oipeFzLQOm9iUZHxXI1IK6XHfNODDyqZYYjsunST+wO0/LvA4P6BlciYO1jqjICAFoI DP86J4HCam5NmJyW+wY5626suGYjq8pLjVkLCOTqK1/TfwyhF7KWtZqqAawitCo0Tn0P 5K6g1TIG94JDmMxBvB5okQ5RbeDgmCtCj8pLOS3xTnsIOkUy7DZeb+B/Bj4KdpkoqKwN YiYs95tJ1DQ9akNxPBH55XI8U29osBA4M0oArOSigkPIEV88PjyoGlyJsmNAsoVwjUHL /fnQ== X-Forwarded-Encrypted: i=1; AJvYcCWJ+Vf+IY2UG4jM9LcojM08bPlY0oG8EH1eFKUX80J3OIlk6Gqi3pAMmX0P1Ph2V4VlVYD4SwfutNj2E13DY4H9dC7RGu0Dqq7Zu+wRgAe3qr2ZbC3snJepM92VUs+NdQ== X-Gm-Message-State: AOJu0YymxdbRe+LdsMFTKzP96v3Hszh5VMXjJc1DGluzscY80xl9+fuy 2+1cLN7luwRTgi6iDeyFvI6QCcFB5+dx11sunNmLHbcW2IezkEVE X-Google-Smtp-Source: AGHT+IE7xfGD09MIaUCfQ0PlF2nHZILjJWkZ4PfKwm4uXDYYCAtdwhtHcBBozUYIc7FVTGi7mIF6mw== X-Received: by 2002:a17:90a:4e06:b0:2a2:c812:9648 with SMTP id n6-20020a17090a4e0600b002a2c8129648mr6948766pjh.9.1712407228261; Sat, 06 Apr 2024 05:40:28 -0700 (PDT) Received: from wheely.local0.net (124-169-104-130.tpgi.com.au. [124.169.104.130]) by smtp.gmail.com with ESMTPSA id nt5-20020a17090b248500b002a279a86e7asm5050576pjb.7.2024.04.06.05.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 05:40:28 -0700 (PDT) From: Nicholas Piggin To: Andrew Jones Cc: Nicholas Piggin , Paolo Bonzini , Thomas Huth , Alexandru Elisei , Eric Auger , Janosch Frank , Claudio Imbrenda , =?utf-8?q?Nico_B=C3=B6hr?= , David Hildenbrand , Shaoqin Huang , Nikos Nikoleris , David Woodhouse , Ricardo Koller , rminmin , Gavin Shan , Nina Schoetterl-Glausch , Sean Christopherson , kvm@vger.kernel.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: [RFC kvm-unit-tests PATCH v2 11/14] shellcheck: Fix SC2294 Date: Sat, 6 Apr 2024 22:38:20 +1000 Message-ID: <20240406123833.406488-12-npiggin@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240406123833.406488-1-npiggin@gmail.com> References: <20240406123833.406488-1-npiggin@gmail.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 SC2294 (warning): eval negates the benefit of arrays. Drop eval to preserve whitespace/symbols (or eval as string). No bug identified. Reviewed-by: Andrew Jones Signed-off-by: Nicholas Piggin --- scripts/arch-run.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash index 95b6fa64d..98d29b671 100644 --- a/scripts/arch-run.bash +++ b/scripts/arch-run.bash @@ -179,7 +179,7 @@ run_migration () exec {src_infifo_fd}<>${src_infifo} exec {dst_infifo_fd}<>${dst_infifo} - eval "${migcmdline[@]}" \ + "${migcmdline[@]}" \ -chardev socket,id=mon,path=${src_qmp},server=on,wait=off \ -mon chardev=mon,mode=control \ < ${src_infifo} > ${src_outfifo} & @@ -219,7 +219,7 @@ run_migration () do_migration () { - eval "${migcmdline[@]}" \ + "${migcmdline[@]}" \ -chardev socket,id=mon,path=${dst_qmp},server=on,wait=off \ -mon chardev=mon,mode=control -incoming unix:${dst_incoming} \ < ${dst_infifo} > ${dst_outfifo} & @@ -357,7 +357,7 @@ run_panic () qmp=$(mktemp -u -t panic-qmp.XXXXXXXXXX) # start VM stopped so we don't miss any events - eval "$@" -chardev socket,id=mon,path=${qmp},server=on,wait=off \ + "$@" -chardev socket,id=mon,path=${qmp},server=on,wait=off \ -mon chardev=mon,mode=control -S & panic_event_count=$(qmp_events ${qmp} | jq -c 'select(.event == "GUEST_PANICKED")' | wc -l)