Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1302656imm; Tue, 22 May 2018 01:43:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZriCPJTZT1uTiJuP9X6c1vLXSujogIbtuh3X9ysBrBh8KMVhTt851KSlkb9AxdwxGu8JQ90 X-Received: by 2002:a17:902:b409:: with SMTP id x9-v6mr24364491plr.180.1526978584159; Tue, 22 May 2018 01:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526978584; cv=none; d=google.com; s=arc-20160816; b=m/jDKFrRgfAhypJEJTRGwaD8br3Z99I1N0mLleLroBkoh2BEDbu7SjrvvXinGwG0DF cZHIOosCoesT8rAt2kGwwKI7lYezwZuXsfJaGZVjQonL6hWp+Qo8q63jpYo5pw9TS7qC C+f8daJit8D3g92VCkVNvGehkYexKPXBhC+7c3trC5yWwPFllOC430BAIQCj/mzNIKnx FJ3E6l1yTNverc1vI1SfgdUIGrxJ8w1zKmW2Oz0VkYCdjsOnRwz1vU4t5EW/KyPIWrkp Wf7OjDW/LPFNnGFrJGqbqNPhNpb22aSYwzTOeICuvIjFPqII6NhbWoDwshOofGhQzuSb O60w== 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=tGxgbBSbUYO+OhDd2SQLAjf9MRhYvevTldSqCfEB3M4=; b=Pj5fCkjpVpJDcW9gCl0CERRK2t3nAAvNpidL32CiylTLS+uJPsAqds7yVepkl4jYND DZ3NRXiXaTw3FSA2MgMnES6rPMxsr5ehBXQuoGlk9ZWMSWkmxxyee9uYcqDXiN51WEuG LYBC1X/gdpjfTLikw73cH3IwvbO1Ul7VBctRr1Tqd9zCJpSGHI5KNUx/pxO1ot4xCejj qMl0lrtI+M28J1LCNjqacfKVi06BTnRl8ZkkylKO225UTs7tmqp4tfzeGJDqSOyNFVig lRyuxJccTGSqZbwWGhWFgcd7YQ3fW56UKdshexFqf0Rd7810/3CRmdVRaChCvt5M0W7y ZybQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=BhrH0PYM; 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 189-v6si12650465pgi.254.2018.05.22.01.42.49; Tue, 22 May 2018 01:43:04 -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=BhrH0PYM; 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 S1751314AbeEVImi (ORCPT + 99 others); Tue, 22 May 2018 04:42:38 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:55507 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751160AbeEVImh (ORCPT ); Tue, 22 May 2018 04:42:37 -0400 Received: from mail-ua0-f180.google.com (mail-ua0-f180.google.com [209.85.217.180]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w4M8gTOH024604 for ; Tue, 22 May 2018 17:42:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w4M8gTOH024604 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526978550; bh=tGxgbBSbUYO+OhDd2SQLAjf9MRhYvevTldSqCfEB3M4=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=BhrH0PYM6notBiRmu5+04sDB2kBMhcvW/N8xxeoaAgKCzsYiPk4PSzt6CpyOgKK6K p5kz56zUaK8LaA0UJJrN1avr3bR9ubxVJAjFL2uyq6MeUP4zFeXWecRTAzUm1YtI9L igMutmAHLyjkd0WjWdJ6bENvpyeDTre8JRAtUePnqwZyGikRZBXZJsrzgjLbXG96C2 Yg97a26TZkAH5dhaXklV1/0ls114SujJCmtkj54yZriOIyr1Z1pJ6PdtBayVQ4bhyr XXBHt0GCeALSPY2U1BhjnW9woBzG2+ZXCZTKFPqOVp9WFfbn+W0VvmHRIph3nB/fuV 5e4mGUan5kZiA== X-Nifty-SrcIP: [209.85.217.180] Received: by mail-ua0-f180.google.com with SMTP id a3-v6so11743029uad.8 for ; Tue, 22 May 2018 01:42:29 -0700 (PDT) X-Gm-Message-State: ALKqPweoG45/x+5fpEu7L4SMdhACntZU8lmD2xruj+Ur/zHlLcMUwNgC CDjzGsOnhyFZ3evN9EPuIKN2RWczA89nuQg87Ok= X-Received: by 2002:ab0:1014:: with SMTP id f20-v6mr16808564uab.141.1526978548828; Tue, 22 May 2018 01:42:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.85.216 with HTTP; Tue, 22 May 2018 01:41:48 -0700 (PDT) In-Reply-To: <20180522082117.p2b5jt5qtuwarqwo@gmail.com> References: <20180518115619.jqb4hqdym7fmrs2p@gmail.com> <20180522082117.p2b5jt5qtuwarqwo@gmail.com> From: Masahiro Yamada Date: Tue, 22 May 2018 17:41:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] scripts/tags.sh: use `find` for $ALLSOURCE_ARCHS generation To: Joey Pabalinas Cc: Andrew Morton , 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-22 17:21 GMT+09:00 Joey Pabalinas : > On Tue, May 22, 2018 at 03:01:07PM +0900, Masahiro Yamada wrote: >> The commit log is wrong. >> >> >> 2018-05-18 20:56 GMT+09:00 Joey Pabalinas : >> > Parsing `ls` is fragile at best and _will_ fail when $tree >> > contains spaces. >> >> This statement is wrong. >> >> The cause of the problem is not using whatever command you use, >> but missing quoting. >> The following would work even if $tree contains spaces: >> >> for arch in `ls "${tree}arch"`; do > > Ah, to be completely honest that case didn't even occur to me. > >> BTW, what was your motivation of this patch? >> >> Does ${tree} contain spaces? > >> >> If the file path contains spaces, the top Makefile terminates it earlier. >> >> Makefile:128: *** main directory cannot contain spaces nor colons. Stop. > > It doesn't; I didn't realize the Makefile already had a guard against > spaces in paths. It was something I noticed when poking at something > else and I thought it might be something worth fixing. > > But now I agree with you that this patch isn't really needed at all. I can > no longer think of a case where even the original > >> for arch in `ls ${tree}arch`; do > > would break since spaces are not allowed at all. > > Well, on the bright side, the times you happen to be wrong are also the > times where you learn the most :) > I see some new motivations for this patch now. - The current code includes 'Kconfig' in ALLSOURCE_ARCHS, but it should not. - Simplify the code, removing the find_all_archs(). If you are motivated for v5, how about this? - Remove the double-quotes from "${tree}arch/" (Because the rest parts of this script do not have double-quoting, I do not see point in adding it in this line only.) - Update the git-log to not mention the hypothetical space things. -- Best Regards Masahiro Yamada