From: Eli Zaretskii <eliz@gnu.org>
To: "Malcolm Cook" <malcolm.cook@gmail.com>,
"Kévin Le Gouguec" <kevin.legouguec@gmail.com>
Cc: 64939@debbugs.gnu.org
Subject: bug#64939:
Date: Sat, 10 Feb 2024 10:27:10 +0200 [thread overview]
Message-ID: <86a5o8vi5d.fsf@gnu.org> (raw)
In-Reply-To: <CAAAQmVYs-Chasez9Ou3p+_TrDHa_U2D-QF-tGyK9TfWjE4ogXA@mail.gmail.com> (message from Malcolm Cook on Thu, 1 Feb 2024 12:52:39 -0600)
> From: Malcolm Cook <malcolm.cook@gmail.com>
> 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?
next prev parent reply other threads:[~2024-02-10 8:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-29 20:08 bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags Wilhelm Kirschbaum
2023-07-29 21:38 ` Wilhelm Kirschbaum
2023-07-30 5:04 ` Eli Zaretskii
2023-07-30 9:38 ` Wilhelm Kirschbaum
2023-07-30 10:04 ` Eli Zaretskii
2023-07-31 7:11 ` Wilhelm Kirschbaum
2023-07-31 17:38 ` Juri Linkov
2023-08-01 6:20 ` Wilhelm Kirschbaum
2023-07-30 4:53 ` Eli Zaretskii
2023-07-30 8:28 ` Wilhelm Kirschbaum
2023-07-30 10:03 ` Eli Zaretskii
2023-07-30 10:27 ` Wilhelm Kirschbaum
2024-01-31 19:52 ` bug#64939: Malcolm Cook
2024-02-01 18:52 ` bug#64939: Malcolm Cook
2024-02-10 8:27 ` Eli Zaretskii [this message]
2024-02-10 10:23 ` bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags Kévin Le Gouguec
2024-02-10 17:08 ` Kévin Le Gouguec
2024-02-10 17:23 ` Malcolm Cook
2024-02-17 8:33 ` Eli Zaretskii
2024-02-28 17:57 ` Wilhelm Kirschbaum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86a5o8vi5d.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64939@debbugs.gnu.org \
--cc=kevin.legouguec@gmail.com \
--cc=malcolm.cook@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.