From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 0BA573857351 for ; Wed, 2 Nov 2022 17:29:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0BA573857351 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.95,234,1661846400"; d="scan'208";a="85783901" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 02 Nov 2022 09:29:30 -0800 IronPort-SDR: +dzI/nKCRmGMmjuwrr06yic89aypcP4muUu5vAw1xwia+n76eVui3reLWQZle0Kn97WFqSj5/X VUN3S9RfuDlr1W9z/qB1E6YzbnTBIWYB/uGg76EJLIsRexa43cpwuWrWqNPm8q418qIOzQbPeU mpqZiTxeQMBNKStFoGBASPkKvEsRcj1OnRVuH8Bw4EziLy7C1eGxBQpUeR4aWD2MBBFCSGC8iY 4BrtllbC1XbbDSn8iKb8DchHwJYPnOnvnDbHOYILNFARyhcWf54JaS6W6CYNWb5dFp/VlRNoLF ESA= Date: Wed, 2 Nov 2022 17:29:25 +0000 From: Joseph Myers To: Christophe Lyon CC: Subject: Re: [PATCH] genmultilib: Add sanity check In-Reply-To: <20221102131004.3816486-1-christophe.lyon@arm.com> Message-ID: <3e9c1413-ece9-d28-f02-f04a5f961813@codesourcery.com> References: <20221102131004.3816486-1-christophe.lyon@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3110.3 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 2 Nov 2022, Christophe Lyon via Gcc-patches wrote: > +# Sanity check: make sure we have as many dirnames as options > +if [ -n "${dirnames}" ]; then > + options_arr=($options) This is an sh script; arrays are a bash feature. Building GCC isn't supposed to need bash (or to rely on $(SHELL) being bash, even when bash is available - many GNU/Linux systems use dash for /bin/sh), only a POSIX shell. -- Joseph S. Myers joseph@codesourcery.com