Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4111696imm; Thu, 17 May 2018 22:47:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqRD1fO1cbg6tpBR6N6FPewji02oo8M3WxI/vKs6r++D05D2zXdvp1MEA9mburLtJ+3OKak X-Received: by 2002:a63:6b43:: with SMTP id g64-v6mr6315644pgc.337.1526622465204; Thu, 17 May 2018 22:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526622465; cv=none; d=google.com; s=arc-20160816; b=QCSohG+hokET5nUGM0ygm+LYrmbbQv7aeRiyJonSUyXg+t90hjp+its6SnyaKfQSnP wUrChtk9kim+c/YLJOUuQh1Al2IR/MFCvfQSfp84xFGcM5Ds2Y+mQJEpoKuMxwm8/aF5 332SWHGQtFmJJCJWvEEBygFd6tVXZR8kHJgetpla4EmbkCHaHdHmlEYaOxD6FKjhazms j+vyT8Q0FpAZT21s3q3figSqxSG3jSLt2MQvpBYd3OWIMx1iKDYQYRwaQwxhgCo2PQVc aUVGXKYZaKQwg1qkLh8kRsqWrPj956HsHoCQ+n1/niAya8w+Ih2p4olpivjtcQMXKB6H e7lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=SzgWa454OQFKlJhKlg/M4b/jmNftVUzPvgmMk6TCXSk=; b=xQz2UHc4oi5x7pEiDqOo6TvPyfgfxKjWkUBXQH6MW3c6gspFUEjJREzLv+IeBcJWbt /FUayEQHK0Z4skHzboqFLIz/o0y8/Z1+yoGEhzxEmNzY5ENKUihDGbGBfOU2/vq6DV9/ KK3sT9vj0T3gq5v/lXWpJm/odSh6j7zW2dSzBjIkpl1Ut1tJzt6pc/GfOOebFANMkHYw phZmACB/qoldelLFfIJpi0Le76QsqaqrLEu8G4OH4pjE21AER9apdev+t2xl3NLb9+Mr QqlPxYWLoO04gKIALcO2e4sGAlA17rcdg3CxNNtJxch6vzTKUd03WokGV3MC+2ZHB+ii 3i0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=pUdQ+l2w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13-v6si6622430plq.413.2018.05.17.22.47.29; Thu, 17 May 2018 22:47:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=pUdQ+l2w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751363AbeERFrW (ORCPT + 99 others); Fri, 18 May 2018 01:47:22 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:28608 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750763AbeERFrV (ORCPT ); Fri, 18 May 2018 01:47:21 -0400 Received: from mail-ua0-f174.google.com (mail-ua0-f174.google.com [209.85.217.174]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w4I5lDQi028033 for ; Fri, 18 May 2018 14:47:14 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w4I5lDQi028033 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526622434; bh=SzgWa454OQFKlJhKlg/M4b/jmNftVUzPvgmMk6TCXSk=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=pUdQ+l2wSSBDTVItBOGrrME7lChmjF8bH4MGLdDpZkdOlULfDROJ/afQjB6n2NI32 0bdEHVHis40U0DrFevg+RNhJTwaWvsBvKU7dW89YaVlJawlVUA5q4KjOp2+DQA+mwj /CkB1ytahoWaXgBpljayG9vpoxxoaHzr1cJunnWEKtwFVxWtyTSZUzmUBtjhUgoMW7 tNqGjfXn1kJUEUbg8M1RVBl4nUyt44yAOGGstG903vCsLCmG08bZa5GB631xDDJTu3 N83kCUOjH2ip3y2fQ1VGRTzMzNNFdFZV1zYFxLgkXDXzO1MTDtnEwdIzVGoEKF73H1 KoOsQH2jvX1oA== X-Nifty-SrcIP: [209.85.217.174] Received: by mail-ua0-f174.google.com with SMTP id d4-v6so4561589ual.10 for ; Thu, 17 May 2018 22:47:14 -0700 (PDT) X-Gm-Message-State: ALKqPwfkNWNJ7ABaYQDKIWrZaGXiE6p+ogBlQTGska2QohrJ3/d0qOvY bk8Oxg5Qvxd59U+E5J+RT1o1cquVRAZVanzJTYA= X-Received: by 2002:ab0:13c9:: with SMTP id n9-v6mr6447074uae.140.1526622432942; Thu, 17 May 2018 22:47:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.85.216 with HTTP; Thu, 17 May 2018 22:46:32 -0700 (PDT) In-Reply-To: <20180516001311.ng6wyxdjqty5ef5j@gmail.com> References: <20180516001311.ng6wyxdjqty5ef5j@gmail.com> From: Masahiro Yamada Date: Fri, 18 May 2018 14:46:32 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts/tags.sh: don't rely on parsing `ls` for $ALLSOURCE_ARCHS generation To: Joey Pabalinas , Andrew Morton Cc: Linux Kernel Mailing List , Arend van Spriel , Robert Jarzmik Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-05-16 9:13 GMT+09:00 Joey Pabalinas : > Parsing `ls` is fragile at best and _will_ fail when $tree > contains spaces. Replace this with a glob-generated string > and directly assign it to $ALLSOURCE_ARCHS; use a subshell > so `cd` doesn't affect the current working directory. > > Signed-off-by: Joey Pabalinas > > 1 file changed, 1 insertion(+), 4 deletions(-) Andrew picked it up, but this patch is *bad* You missed arch/Kconfig. $(cd "${tree}arch/" && echo *) contains Kconfig, but it is not arch. > diff --git a/scripts/tags.sh b/scripts/tags.sh > index 78e546ff689c2d5f40..b84acf8889fe836c60 100755 > --- a/scripts/tags.sh > +++ b/scripts/tags.sh > @@ -29,14 +29,11 @@ fi > ignore="$ignore ( -path ${tree}tools ) -prune -o" > > # Find all available archs > find_all_archs() > { > - ALLSOURCE_ARCHS="" > - for arch in `ls ${tree}arch`; do > - ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/} > - done > + ALLSOURCE_ARCHS="$( (cd "${tree}arch/" && echo *) )" > } > > # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH > if [ "${ALLSOURCE_ARCHS}" = "" ]; then > ALLSOURCE_ARCHS=${SRCARCH} > -- > 2.17.0.rc1.35.g90bbd502d54fe92035.dirty > -- Best Regards Masahiro Yamada