[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] shell-command+ c99c73e 4/6: Fix eshell command detection
From: |
Philip Kaludercic |
Subject: |
[elpa] shell-command+ c99c73e 4/6: Fix eshell command detection |
Date: |
Sun, 18 Apr 2021 17:12:41 -0400 (EDT) |
branch: shell-command+
commit c99c73e469539d2a577e6900f20a2b0df7779230
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>
Fix eshell command detection
The previous regular expression was too greedy in matching the command
name. A command like "grep pat file" would falsely interpret "grep
pat" to be the command, and "file" to be the argument.
---
shell-command+.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell-command+.el b/shell-command+.el
index 9b43186..cce1e8b 100644
--- a/shell-command+.el
+++ b/shell-command+.el
@@ -92,7 +92,7 @@ handlers if the symbol (eg. `man') is contained in the list."
;; allow whitespace after indicator
(* space)
;; actual command (and command name)
- (group (? (group (+ not-newline))
+ (group (? (group (+? not-newline))
(+ space))
(+ not-newline))
eos)
- [elpa] branch shell-command+ created (now c31f5f5), Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ 8a46f0c 2/6: Require trailing whitespace for shell-command+-prompt, Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ f19569d 1/6: Add shell-command+-prompt option, Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ c31f5f5 6/6: Bump version to 2.1.0, Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ 1c132fe 3/6: Give example configuration in README, Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ c99c73e 4/6: Fix eshell command detection,
Philip Kaludercic <=
- [elpa] shell-command+ 6cac2e4 5/6: Fix setup form in README, Philip Kaludercic, 2021/04/18