From 75a995f66f3f611c26c495db0c0351acdbb464f5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 10 Jan 2025 18:41:25 -0500 Subject: [PATCH] docs: detect nushell on windows too Amend: 1a8636056051 --- lisp/cli/doctor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/cli/doctor.el b/lisp/cli/doctor.el index f9bccfe33..8991fdcd7 100644 --- a/lisp/cli/doctor.el +++ b/lisp/cli/doctor.el @@ -171,7 +171,7 @@ in." (print! (start "Checking for common environmental issues...")) (print-group! (when (or (string-match-p "/fish$" shell-file-name) - (string-match-p "/nu$" shell-file-name)) + (string-match-p "/nu\\(?:\\.exe\\)?$" shell-file-name)) (print! (warn "Detected a non-POSIX $SHELL")) (explain! "Non-POSIX shells (particularly Fish and Nushell) can cause unpredictable issues " "with any Emacs utilities that spawn child processes from shell commands (like "