branch: externals/urgrep
commit 6aefc895bc54b73cc1bf94841a58d2c6bedd0102
Author: Jim Porter <jporterb...@gmail.com>
Commit: Jim Porter <jporterb...@gmail.com>

    Set system-type to gnu/linux when making the Urgrep command for Eshell
---
 urgrep.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/urgrep.el b/urgrep.el
index c7089f0700..f7fe5d9cfc 100644
--- a/urgrep.el
+++ b/urgrep.el
@@ -1229,7 +1229,10 @@ Recursively search for PATTERN within PATH.")
          (error "Can't use plain urgrep with a non-default directory yet"))
        (setq options (nconc '(:color nil) options))
        (throw 'eshell-replace-command
-              (let ((cmd (apply #'urgrep-command query options)))
+              (let* (;; Ensure we generate a POSIX shell-like command so that
+                     ;; Eshell can (hopefully) parse it correctly.
+                     (system-type 'gnu/linux)
+                     (cmd (apply #'urgrep-command query options)))
                 (eshell-parse-command (concat "*" cmd))))))))
 
 (provide 'urgrep)

Reply via email to