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