emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/shell-command+ f0a8a95 30/36: Don't interpret local bin


From: Stefan Monnier
Subject: [elpa] externals/shell-command+ f0a8a95 30/36: Don't interpret local binary execution as a path
Date: Fri, 25 Sep 2020 11:01:27 -0400 (EDT)

branch: externals/shell-command+
commit f0a8a955b87ce7840fd1871875c452d904640c10
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>

    Don't interpret local binary execution as a path
---
 bang.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bang.el b/bang.el
index 931d7f4..8c25476 100644
--- a/bang.el
+++ b/bang.el
@@ -34,8 +34,10 @@
 
 (defconst bang--command-regexp
   (rx bos (* space)
-      (? (group (or "." "/" "~") (* (not space))) (+ space))
-      (or (group "<") (group ">") (group "|") "!" "")
+      (? (group (or (: ?. (not (any "/"))) ?/ ?~)
+                (* (not space)))
+         (+ space))
+      (or (group ?<) (group ?>) (group ?|) ?! "")
       (* space)
       (group (+ not-newline))
       eos))



reply via email to

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