bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64939:


From: Eli Zaretskii
Subject: bug#64939:
Date: Sat, 10 Feb 2024 10:27:10 +0200

> 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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]