From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Malcolm Cook Newsgroups: gmane.emacs.bugs Subject: bug#64939: Date: Thu, 1 Feb 2024 12:52:39 -0600 Message-ID: References: <87mszebgwy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4102"; mail-complaints-to="usenet@ciao.gmane.io" To: 64939@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 01 19:54:15 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 1rVcCU-0000ph-Qw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Feb 2024 19:54:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVcCC-0003VY-SZ; Thu, 01 Feb 2024 13:53:56 -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 1rVcC8-0003SZ-4g for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2024 13:53:52 -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 1rVcC7-0001xI-Qi for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2024 13:53:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVcCH-0007y2-KT for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2024 13:54:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87mszebgwy.fsf@gmail.com> Resent-From: Malcolm Cook Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Feb 2024 18:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64939 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, 64939@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170681362930602 (code B ref -1); Thu, 01 Feb 2024 18:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Feb 2024 18:53:49 +0000 Original-Received: from localhost ([127.0.0.1]:43140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVcC5-0007xV-8n for submit@debbugs.gnu.org; Thu, 01 Feb 2024 13:53:49 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:38726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVcC2-0007xH-3V for submit@debbugs.gnu.org; Thu, 01 Feb 2024 13:53:47 -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 1rVcBk-0002t7-OL for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2024 13:53:29 -0500 Original-Received: from mail-vs1-xe30.google.com ([2607:f8b0:4864:20::e30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVcBY-0001nF-W1 for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2024 13:53:18 -0500 Original-Received: by mail-vs1-xe30.google.com with SMTP id ada2fe7eead31-46b0ca27b74so525564137.3 for ; Thu, 01 Feb 2024 10:53:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706813595; x=1707418395; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=iVYZqCjEZsrN4bhG6vnB4bkD+fKOxk6xHqq1zr2jXOc=; b=gAAmiRMkEwuFS3p9ErqqYJDqmG0K8zPY135ktk6aJO5FLJw284wUPKNhQEcMx7DkeM 6W1lAZF9D1aDKcxUcpYnVHP2rLzaM8d0J9FXLolZenvOKNB0q6eQ1QChS2kXzqGCkHRo dEFcubF2cHKVNUkZC+4q1/LlJxIcpQCFjMhTv4AkPdWjjLiPdXmVsXO6VUM483yC1QB5 ASbwNo29jC+wzq9jtk4R5CKW1LQcBfDkUz1AdQLDiqwipkzPWcqodGUmmraoMYyraTEJ Rwy3RkxchP1AOqwgEfSf3u7VkWm+WTtpdFXNBxtais1YMZmzE0wwAboJM01PJsiId6Wj 58nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706813595; x=1707418395; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iVYZqCjEZsrN4bhG6vnB4bkD+fKOxk6xHqq1zr2jXOc=; b=k5NPTGUv+FxBN5jRBBYJGn6Mpg1DyJUjl0U5Ais1YlMg+WZCCe9aipLwNukxMrWnOB +guElzGPOW2klDwNb6wzSNo3af/y8OEaT1y6qWAtCbVF7az5Em6BkvBRflC2bxDziXFN egAG/CXoIub/exDkweCdhb5aAJsp3pNFAsASIGc/1at9Mae1sSNaqJH/JkpCOb7lSOgm JiCA1lWmmzFUh8/lFeae1yqwaXcPZCNrZVubVbcSEuUGflmP59c9i3CzU9+Kzv6Z7qOk 8chVX/F+5+aA3YU1v29zQN0vDY/dtfk3gmnk6Rx7aykQ8SYzkKSKrDmgUSfTpvQ7xFPI J3cA== X-Gm-Message-State: AOJu0Yzx1oAl0zzWiyFq4anUGiEYVGxHaNAOpmDPaYlt3Mbj2hfAUIKu G1whZVK7s2a/BFPl3llVyLNQBgSEbWobyfLJfkJZJKxrccyNzKd81uR/8Wgt3ZZC8ot2Tmh1agu O3whqrFUBMF65rngZVUmHcrtYjTO53zKsl1e2SRi2 X-Google-Smtp-Source: AGHT+IHl4VxlSfrWZd0HT3a0WgqJ7EwOblc/jr47ZPRV4X9sLdtlc6gtVfLVhIhuRnrjga0bO61lkvxTP5HYaHOjWTs= X-Received: by 2002:a05:6102:351:b0:46c:a269:f3a2 with SMTP id e17-20020a056102035100b0046ca269f3a2mr4727739vsa.3.1706813595070; Thu, 01 Feb 2024 10:53:15 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::e30; envelope-from=malcolm.cook@gmail.com; helo=mail-vs1-xe30.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: 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:279303 Archived-At: 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? ~ Malcolm Cook