[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180518115204.fvz24hdytdh6qgt7@gmail.com>
Date: Fri, 18 May 2018 01:52:04 -1000
From: Joey Pabalinas <joeypabalinas@...il.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Joey Pabalinas <joeypabalinas@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Arend van Spriel <arend.vanspriel@...adcom.com>,
Robert Jarzmik <robert.jarzmik@...e.fr>
Subject: Re: [PATCH v3] scripts/tags.sh: don't parse `ls` for
$ALLSOURCE_ARCHS generation
On Fri, May 18, 2018 at 08:03:26PM +0900, Masahiro Yamada wrote:
> Does this work?
> ALLSOURCE_ARCHS=$(find "${tree}"arch -mindepth 1 -maxdepth 1 -type d
> -printf ' %f')
Aha, that actually works perfectly.
> It would leave one leading space, but I do not think it is a big deal.
>
>
> It would be possible to chop it like follows, but I wonder if it is worth doing.
> ALLSOURCE_ARCHS=$(find "${tree}"arch -mindepth 1 -maxdepth 1 -type d
> -printf ' %f' | cut -c2-)
Yeah, the leading space isn't really something that is worth worrying
about here in my opinion either.
I'll use this in my v4 then, thanks.
--
Cheers,
Joey Pabalinas
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists