Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2301726rwd; Mon, 15 May 2023 09:44:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4nj/PV+1eoVzuW6JXg+pVhr9Z1sVZPr/FosKONnXRN9E4aJH+8YHA61jpDgnH0FUL3hzFg X-Received: by 2002:a17:902:da89:b0:1ac:acb5:4336 with SMTP id j9-20020a170902da8900b001acacb54336mr28604463plx.33.1684169069409; Mon, 15 May 2023 09:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684169069; cv=none; d=google.com; s=arc-20160816; b=Sl9iUNPhPrab+yzeg+d/01/Fd7CuROCbp90bFzYxAf+4A2VpEMgFJlVJhzL4W5zkqz 6KmRt0Iq8uvb9h51rg+2GCuigTe9Jyjx+GUDN8tY3uZwi1fnkZ8EIdj0Kl5F80twahZ4 fy9cfnKNRdMfGGNr4tQ/7dOJiSll1Il8YWxkxVsKMjdiGmMQWqCAwQUpwaXNVKsc63Ij dkfoEkZmy7MPBglr5otf/AOezns0n0JubIPQA5rxn45RdLnsmMpL4IydUZT9HHhJ5IUZ Dc80GSziWLeo0e66wVic+VHLW3HEdbyOX3tScc2xmCa2US7FpUUknxahyFmUqnm4hbIa RcRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=lpZYBpEggjix2lXh0EkRGiWcWZ+gWNXWguy09L3ZWFo=; b=lRuw55M3tv0G1wXyWJCOYv1/R1Kmj+kvEzjBdM2c1V0Z4DK66Lqg0XlwkAZ963tWWJ vA5Vw3o0yw+kVBTi8T4UsaNiHlg1lPYbzUpnykXJVUcD7E/ssXofquYxgE16az9RPEjJ RDVuuCLHNneYPQXU8mtA8B6JiA3OtudLRouL1J6tHpC8BGChfqM0hlzuEajPgaCOdVGF d4vSXaJrx3bhAbKsou9eZY1pnVCSdpiV4N8ED0rvxH7Fs2CcqvU4udqLwLbO1xEdaJcy KHzs5aD/KhDObtST5gGCSnKx+tHy+7ZqXwYJGpISa+Z4s8QVxB9hzM4tuQC3HXzgWboF PPmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=idprkij9; dkim=neutral (no key) header.i=@linutronix.de header.b=BvkDLcSZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a170903234b00b001aaf78f7a95si17665992plh.101.2023.05.15.09.44.16; Mon, 15 May 2023 09:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=idprkij9; dkim=neutral (no key) header.i=@linutronix.de header.b=BvkDLcSZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242694AbjEOQf1 (ORCPT + 99 others); Mon, 15 May 2023 12:35:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242650AbjEOQf0 (ORCPT ); Mon, 15 May 2023 12:35:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF17C3AB2; Mon, 15 May 2023 09:35:24 -0700 (PDT) Date: Mon, 15 May 2023 18:35:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684168523; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lpZYBpEggjix2lXh0EkRGiWcWZ+gWNXWguy09L3ZWFo=; b=idprkij9Ji8PZhPMWq6aoSzEH8+2jN/ETtFQT7ACe008pFjEE3aHS4sbSJagxHHgRmRs0L 46nzfKiXI0/774OYNChfbqckqFdW4PdR16yLIlVkHq+P1c1X4xTwpRw7LQa6OLdc28KkHa +Xx84/qpSRh1YxTyPeh8k5Mqgw6cRiiYSuVTBjFada2oA5BfE/M+vsMw4gbs56H1yFWw3G CGpuoanXr1CRv6x/vZOrpVdMaBZY8NbDN8T2B7JCNQSv9KBQDsdf/t1GdmvASAq3V9cGur lXhej6RXhEzc9j6rDdHa6KUcZII3Ud/Z/RZxpWd9m4tMLr+cBGTCGx33jWzrcg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684168523; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lpZYBpEggjix2lXh0EkRGiWcWZ+gWNXWguy09L3ZWFo=; b=BvkDLcSZCdcpH9bLqK0zNiYytt6B2Zni6b4vgZ+kdkgJ7V6xZ+X7YpHnKlHzfumRV4hzNm VZy0UcjgFZbLG5Cw== From: "Ahmed S. Darwish" To: Masahiro Yamada Cc: Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Thomas Gleixner , linux-kbuild@vger.kernel.org, LKML Subject: Re: [PATCH v2 1/2] scripts/tags.sh: Resolve gtags empty index generation Message-ID: References: <20230504201833.202494-1-darwi@linutronix.de> <20230509012616.81579-1-darwi@linutronix.de> <20230509012616.81579-2-darwi@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 May 2023, Ahmed S. Darwish wrote: > On Fri, 12 May 2023, Masahiro Yamada wrote: > > > > You can write it in one line. > > > > dogtags() > > { > > all_target_sources | gtags -i -C "${tree:-.}" -f - "${PWD}" > > } > > > > Ditto. The script was almost-fully POSIX style (except the first line), > so I avoided bash features on purpose. > Nitpick for correctness sake the "Use default values" parameter expansion is actually POSIX-ly correct: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02 Thanks, Ahmed