From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: build-aux/git-hooks/pre-push Date: Mon, 1 May 2023 22:35:23 -0700 Message-ID: References: <875y9cef96.fsf.ref@yahoo.com> <875y9cef96.fsf@yahoo.com> <871qk0ef2g.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28183"; mail-complaints-to="usenet@ciao.gmane.io" To: Po Lu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 02 07:36:34 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ptigi-000791-IS for ged-emacs-devel@m.gmane-mx.org; Tue, 02 May 2023 07:36:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptifj-0001Ne-Ev; Tue, 02 May 2023 01:35:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptifh-0001Lp-0H for emacs-devel@gnu.org; Tue, 02 May 2023 01:35:29 -0400 Original-Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptiff-0005Yi-Et for emacs-devel@gnu.org; Tue, 02 May 2023 01:35:28 -0400 Original-Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-24de504c61dso2527419a91.1 for ; Mon, 01 May 2023 22:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683005725; x=1685597725; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=yvl9Jxw2mcgPRjf27DpfuDhlHpFfucd8iHKl2HQCrvg=; b=svLSJcypmZOSvaiu+wl53iCy3r8PawQt5tChi+bj57JcvtKoUo/oLG8VnkRZu+HXB1 aDl4baX0bbQGA2F8d+1gUqhsVbBCJhycy9xrcEGIgU85NWEC30BuY8Z71SW0orjZejzY rRXRKmCV3bdhzSU71xQaX280neUdfinkeXuZIFBFnQEbSu20cx5vnor6wbae+58aCk9u u15Dqa4nHm8bSA3F4PrC44Kxi00fTNEp2Ju4qhTb/RkoLE3Jct0CCOegc4hc4mVQLjWr paNTD1tN1rEOrpZhd7vLyNr0x7cWJrdRwfbnU5usSlo11nwGJGiA5RTqI5QU0d1qWwZJ 32MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683005725; x=1685597725; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yvl9Jxw2mcgPRjf27DpfuDhlHpFfucd8iHKl2HQCrvg=; b=V5+jW/+z+2UIXlPFO0tKpnhcvIWxulY2H3PndZb7PhwRd/DyuOfup/eWcgPhvnxCx0 lT/6GIdqMH2RIR9imF7/hga2IUKpngo4/2SLgq3DsDwH0fhdYXoS2oMHxPmXIOB7z31J ahDI8WzScEquMeWxn95Pt9/cMDRUS+PdNrbuTaSPSFD6YC4t3H1vkLIAy0TaLZG9ztzY mqJqQe+NVz5v6G2d8N+/6v/S/NE8bB8LuFJkUMflSOXmW1eSE8dJLZEIwn9nR7yDXSJ8 qSCG8NpmbdpgXUXxN6MKTUmi7uQ6XwR/iBtDpo0Crd7kZSEjPicJN/iQB4h71U/8ly04 OFtQ== X-Gm-Message-State: AC+VfDzfJw5gokLc+lD2kB/8MLsHa860SYC7Qsd7D74J0oHJjJE8vH43 wkhJp7QNENygOFw0/wDA2hs= X-Google-Smtp-Source: ACHHUZ6fR5Ml2ME52PXf0ksda1b5eeIlVQi9q6YG/27DN3txjuP2vwMoiT1JsX5DIkdrrDMX5SQTBg== X-Received: by 2002:a17:90a:d798:b0:246:5fbb:43bf with SMTP id z24-20020a17090ad79800b002465fbb43bfmr17328791pju.4.1683005725280; Mon, 01 May 2023 22:35:25 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id y22-20020a17090abd1600b00246b7b8b43asm6677532pjr.49.2023.05.01.22.35.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 May 2023 22:35:24 -0700 (PDT) Content-Language: en-US In-Reply-To: <871qk0ef2g.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=jporterbugs@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305746 Archived-At: On 4/30/2023 11:33 PM, Po Lu wrote: > Btw, I notice that the script falls back to awk if gawk cannot be found. > Maybe in that case, the awk script should be rewritten to not utilize > getline, sub, function, and other features which do not work with Unix > awk? Or maybe it should try harder to find a POSIX awk? I'm not sure the best way to do it, but I think trying to find a POSIX awk would be the simplest solution. That awk script isn't *terribly* complex, but it uses enough POSIX awk features that I wouldn't want to try and make it work with UNIX awk (even if I knew exactly how to do that).