From: Jim Mattson Subject: [kvm-unit-tests PATCH] Appease older versions of bash Date: Thu, 24 Aug 2017 11:36:17 -0700 Message-ID: <20170824183617.180441-1-jmattson@google.com> Cc: Jim Mattson To: kvm@vger.kernel.org Return-path: Received: from mail-pg0-f53.google.com ([74.125.83.53]:36671 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753352AbdHXShF (ORCPT ); Thu, 24 Aug 2017 14:37:05 -0400 Received: by mail-pg0-f53.google.com with SMTP id r133so1554463pgr.3 for ; Thu, 24 Aug 2017 11:37:05 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Older versions of bash need the extra quotes. Otherwise, the entire version gets assigned to 'v,' after replacing spaces with periods. (e.g. v="4 9"; p="".) Signed-off-by: Jim Mattson --- scripts/arch-run.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash index 28a9efa..1e41eb7 100644 --- a/scripts/arch-run.bash +++ b/scripts/arch-run.bash @@ -247,8 +247,8 @@ env_generate_errata () errata="ERRATA_$commit" test -v $errata && continue - IFS=. read -r v p rest <<<$minver - IFS=- read -r s x <<<$rest + IFS=. read -r v p rest <<<"$minver" + IFS=- read -r s x <<<"$rest" s=${s%%[!0-9]*} x=${x%%[!0-9]*} -- 2.14.1.342.g6490525c54-goog