From 805517123cbfe33d17c989a18e78c5789fab0437 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 3 Jul 2021 11:05:56 +0300 Subject: [PATCH] config.sub: disable shellcheck SC2006 / SC2268 warnings This is in line with the recent config.guess change in commit 12fcf67c9108f4c4b581eaa302088782f0ee40ea * config.sub (shellcheck disable): Add SC2006,SC2268. Suggested-by: Jacob Bachmeyer Signed-off-by: Ozkan Sezer Signed-off-by: Dmitry V. Levin --- config.sub | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.sub b/config.sub index fdbb2b1..d80c5d7 100755 --- a/config.sub +++ b/config.sub @@ -2,6 +2,8 @@ # Configuration validation subroutine script. # Copyright 1992-2021 Free Software Foundation, Inc. +# shellcheck disable=SC2006,SC2268 # see below for rationale + timestamp='2021-07-03' # This file is free software; you can redistribute it and/or modify it @@ -50,6 +52,13 @@ timestamp='2021-07-03' # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. +# The "shellcheck disable" line above the timestamp inhibits complaints +# about features and limitations of the classic Bourne shell that were +# superseded or lifted in POSIX. However, this script identifies a wide +# variety of pre-POSIX systems that do not have POSIX shells at all, and +# even some reasonably current systems (Solaris 10 as case-in-point) still +# have a pre-POSIX /bin/sh. + me=`echo "$0" | sed -e 's,.*/,,'` usage="\