[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?
- bug#64939:, Malcolm Cook, 2024/02/01
- bug#64939:, Malcolm Cook, 2024/02/01
- bug#64939:,
Eli Zaretskii <=
- bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags, Kévin Le Gouguec, 2024/02/10
- bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags, Kévin Le Gouguec, 2024/02/10
- bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags, Malcolm Cook, 2024/02/10
- bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags, Eli Zaretskii, 2024/02/17
- bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags, Wilhelm Kirschbaum, 2024/02/28