Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1285778imm; Tue, 22 May 2018 01:21:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrswc8vXrfIt9U2WPsufO1kiiaDOsVEfERYnF52RJx8jHo5ECUykH9bfK82JnwlC2Ha9IzK X-Received: by 2002:a17:902:284b:: with SMTP id e69-v6mr23055734plb.240.1526977313128; Tue, 22 May 2018 01:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526977313; cv=none; d=google.com; s=arc-20160816; b=qBDSEfMiyio9LB8/cZhtyS87z0DqDHWDguQFs0B59lbdNz5TScvHNLqeNNNVMUKQRY Xbxqsx1BrYbHYxObD01M9l/adjOKgyS4kdiSSRCnmMQDmqX59UxUzIAAjiDhTSr10Szs AhxYfGqTafRiwSoB7KJMOpzbuvBzfIZ6mHyoNO5kuHba73EKhxqux5JH2X5X96lcAeCQ cJWeh5dwEc69MKdaTmHIfL0rXpKNkNxz1nNnILynIYJlnPjGagkN/sIJ2qN6bXTSirou 4DKoGHmwH8LoVJEoq7Rq55d0sp3b08HJb7JoRg/qtegbXHPngJWzQOlOjcv+fdekH30I ZQhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=YtnJWwbt2ZDqf2jhG8w+j6DkofgPZ+KkKAwTuIyPBwg=; b=i11Twe/yTvcN3U8ZKKpZTgnp4eTPzA7nHmYjxwWEWkuHJVc/YSYPNAMX/a/OTpdkE/ i/SUHgTasluKzYNLoY0F7EWU9bXjR0/wMeNoSonOvBDBMfPU5MYvnVksKf3c9J/Dt17J bV5ydiQICqRSpxShLP9pGcuEObMnllu4FVwnQpnyBBrv9+cI7+qjSoplsiRhAL3mWlR2 9vzy/PnvrPLYz2rSx6Pae4Mn5HOmHz5KAuektc0FlNb2QTie8xLMZaxvfzmH25y47byh ENHqdVjih7igkuE2os3KISZ/28ODzdvFi4+jKGpZiMVQ+q6b4ZcPA6ZmSAymPeWhWd6P iX9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XWEu0otA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10-v6si12276603pgp.419.2018.05.22.01.21.38; Tue, 22 May 2018 01:21:53 -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=@gmail.com header.s=20161025 header.b=XWEu0otA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751391AbeEVIVY (ORCPT + 99 others); Tue, 22 May 2018 04:21:24 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:44997 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbeEVIVV (ORCPT ); Tue, 22 May 2018 04:21:21 -0400 Received: by mail-pf0-f195.google.com with SMTP id q22-v6so8390962pff.11 for ; Tue, 22 May 2018 01:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YtnJWwbt2ZDqf2jhG8w+j6DkofgPZ+KkKAwTuIyPBwg=; b=XWEu0otADV/2wLw4qXsrBtms23rEKqB0TvcC9yIfqn4D+AvMrawwpAf/TH9XSgpYt3 bSSIwYuAhXCqwE+gAAN+Bx+FRjmO2k2JNN0xaOBc2JryTUB+AokwTWjQc+Rih4nf8qIS oujKd27kolrJUz3V4x7A3kFM569qvKEIY7FVu49GtOnNBEesz1dZmHT6Iiy1/81Shbud V0GyyWon1Ke7mQTL6Nif7cAKj7WlxfN5D1tnOoEuGsqOQGqBPp7arnczbb+sOyXzo7zv 0prAbtTiOuDIm6nIk5brhQ1Bv9p2OHfcbUV7/nBOX/oadvIZXDCBw2k3Egm6JDSPwI3y +qqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YtnJWwbt2ZDqf2jhG8w+j6DkofgPZ+KkKAwTuIyPBwg=; b=eoaJKZvFacm+3iXrSZO2kvMzy1nYsoLwpETJ526O5UE30rEMEA/JE+4O17x5y9Wx0X wnP5wo+xhwERhF6SRYpnNu4fvbHWB9pb2QHQ6CH3YgLh8PmFw8t8FXEJe+oPQn+IuPhy ZBuz+6tONfCM/Ak6r8+IOdVRXPFdFwMAdv8/agpJLCzrZZ1X+G1bmlmmBDt+1vm0F8PQ DI7LZkES8lXKKJTS/+F/SyXXk6chFjTadIQcdbRbQnAFr2MRQy7fugbOnqxqu+OIJoZH 1RFp2s4rpOvdwPP4IAc14MQ7NtWvjHtQfMlbqA6n6PzU9DfP4bjMTH0iRBGufEG3NYZ2 86LA== X-Gm-Message-State: ALKqPwctitGs+z3ueEzcP7N2673SswbAFDxoziT3Npoexp/bVKDSSQQ3 VgWGlzr9yG+/vcpAQtIWqij+1g== X-Received: by 2002:a62:c898:: with SMTP id i24-v6mr23436389pfk.35.1526977280724; Tue, 22 May 2018 01:21:20 -0700 (PDT) Received: from gmail.com ([2605:e000:1117:c0e3:2e0:1bff:fe70:ea]) by smtp.gmail.com with ESMTPSA id e126-v6sm28317239pfh.5.2018.05.22.01.21.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 01:21:19 -0700 (PDT) Date: Mon, 21 May 2018 22:21:17 -1000 From: Joey Pabalinas To: Masahiro Yamada Cc: Joey Pabalinas , Andrew Morton , Linux Kernel Mailing List , Arend van Spriel , Robert Jarzmik Subject: Re: [PATCH v4] scripts/tags.sh: use `find` for $ALLSOURCE_ARCHS generation Message-ID: <20180522082117.p2b5jt5qtuwarqwo@gmail.com> References: <20180518115619.jqb4hqdym7fmrs2p@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d6tcxwzylcsgbhiz" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323-62-378db9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --d6tcxwzylcsgbhiz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 22, 2018 at 03:01:07PM +0900, Masahiro Yamada wrote: > The commit log is wrong. >=20 >=20 > 2018-05-18 20:56 GMT+09:00 Joey Pabalinas : > > Parsing `ls` is fragile at best and _will_ fail when $tree > > contains spaces. >=20 > This statement is wrong. >=20 > The cause of the problem is not using whatever command you use, > but missing quoting. > The following would work even if $tree contains spaces: >=20 > 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? >=20 > Does ${tree} contain spaces? >=20 > If the file path contains spaces, the top Makefile terminates it earlier. >=20 > 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 :) --=20 Cheers, Joey Pabalinas --d6tcxwzylcsgbhiz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKlZXrihdNOcUPZTNruvLfWhyVBkFAlsD0v0ACgkQruvLfWhy VBlDcRAA0+uxzHtntIaAc8IaRdd0KaDYh6wMoUV/AjII4z0NoRtcyBpMOCpZGWLX eim7dqbSutC+t4vOp9wih1BpMlx0KtNN9XX3wsVieknjZ2vLFNmQKZoYWc6oS3ZH T+ZIanz9T9ZPGvpj7K5cAMq/BQ9U0/2a6ZB7Xr+4ARa4ovTCOfXCdSevJYIWMFF0 9beCbkuwIU5OhfDKqMx1rIaKIp98DD1MwEJIfDOPlLmLGp8LhJ5slAfKg4gg0e3l J8bAgyqEC6iqCbK3XV59PQXWPmPdbEakVfSEaxUg5UCSgG3mANoGztm4FbPpqdk1 fjxVW6PYjI2LicE9xFBtKaKhILevGfN93zFkzs5/8miTiRCFjktrdMFPx9iMur2/ y0oHWTLgp6hkWCC3Mmb6h7sE4Z5h/o0bFeNUF2TgDsPpBwt3s4PI1wm5NzjzQAKn qRUYk3JrPsRFXC7h1LMdQR4wcM+SW/UiLi7tbTiexudiFBsA7tTlzpLCf5zJEIR0 tGhtJZa5FSciYTY+HYmtRro/dPdCN40+Ph6ssRP6cM94CT49BD41p8+ICfMNnWtx aR5yA5rwwB+0AjW3haoMvep/AGWXwpIyAVT+cDO4eU4F5oRoZncnZGLSkpNvK7o4 ng+L3utfaQTd8+f4IfjpofudTXW7dpu3prlii6NF+zWrrg1ReZo= =jvU9 -----END PGP SIGNATURE----- --d6tcxwzylcsgbhiz--