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

[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)



reply via email to

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