From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64939: Date: Sat, 10 Feb 2024 10:27:10 +0200 Message-ID: <86a5o8vi5d.fsf@gnu.org> References: <87mszebgwy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4833"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64939@debbugs.gnu.org To: Malcolm Cook , =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 10 09:56:19 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rYj9m-00015t-TT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Feb 2024 09:56:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYj9N-0001Kx-Uj; Sat, 10 Feb 2024 03:55:54 -0500 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 1rYj9H-0001Cr-Tv for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 03:55:48 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYj9G-00035h-GU for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 03:55:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rYj9V-0007u2-OF for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 03:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2024 08:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64939 X-GNU-PR-Package: emacs Original-Received: via spool by 64939-submit@debbugs.gnu.org id=B64939.170755532030271 (code B ref 64939); Sat, 10 Feb 2024 08:56:01 +0000 Original-Received: (at 64939) by debbugs.gnu.org; 10 Feb 2024 08:55:20 +0000 Original-Received: from localhost ([127.0.0.1]:53635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYj8q-0007s5-B8 for submit@debbugs.gnu.org; Sat, 10 Feb 2024 03:55:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYj7f-0007mm-VV for 64939@debbugs.gnu.org; Sat, 10 Feb 2024 03:54:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYihc-0006ow-8m; Sat, 10 Feb 2024 03:27:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=htvMh6aZi0yOnN3HjqIciVTA9xav2eP7RgRCW3+PCpI=; b=gUaRuB3PLZvI4RvQGs0T UZ4kl/TXnX3vuQ66IYKHdmuPwH2SJBkTnUs+O4XCFRDN1kW0lepxJHz6/7PGA5HgEVX+x3SMe5gAm +kPQ/6b/nbNrxPcldOfbX6mlg4SJ3NuJrx/OEsqEap9pg3hnuFMHS0v756o0UXhncesuQhlS2d2fz IIFEBTJp7CZEBo3w3v/YLYIZO1yiCfoY1pCjZ3XldQlPlZsovheGflbDLNHMfMA756PB3K93Zq5W6 nlkz9RjoROq3xPeFCqlMJdb9ECM58DRaU58K5ZdqC8+IkL/uXZDENSF34Mp5fA75470RRVvdD/oKr eZqUcIr3DF334A==; In-Reply-To: (message from Malcolm Cook on Thu, 1 Feb 2024 12:52:39 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279729 Archived-At: > From: Malcolm Cook > Date: Thu, 1 Feb 2024 12:52:39 -0600 > > Regarding [1] allowing emacs to recognize shebang lines containing > calls to /bin/env with options (such as -S as allowed in new core > utils [2])... > > I prefer allowing the proposed "shy" regexp to match zero or more > times (using a '*' instead of '?'). > > To wit, I have this now in my init.el: > > (setq auto-mode-interpreter-regexp > ;; Support shbang line calling `/bin/env` with `-S` (and/or > other options). > ;; c.f. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64939 > (purecopy "#![ \t]?\\([^ \t\n]*\ > /bin/env[ \t]\\)?\\(?:-\\{1,2\\}[a-zA-Z1-9=]+[ \t]+\\)*\\([^ > \t\n]+\\)")) > > [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64939 > [2] https://www.gnu.org/software/coreutils/manual/html_node/env-invocation.html#env-invocation > > YMMV? Kevin, any comments about the proposals in this bug report?