branch: externals/shell-command+
commit f0a8a955b87ce7840fd1871875c452d904640c10
Author: Philip K <[email protected]>
Commit: Philip K <[email protected]>
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))