.emacs-my
changeset 1768 b3cac2287547
parent 1767 fd3589f24170
child 1769 1a21553009b7
--- a/.emacs-my	Wed Dec 14 00:58:57 2022 +0200
+++ b/.emacs-my	Fri Dec 23 17:30:07 2022 +0200
@@ -571,11 +571,10 @@
 
 (cl-eval-when (compile) (require 'shell))
 
-(setq explicit-bash-args
-      (if (eq system-type 'windows-nt)
-          ;; https://emacs.stackexchange.com/questions/71487/mingw-shell-in-emacs/
-          (list "--login")
-        (list "-i")))
+;; '-i' causes ioctl related warning in Windows Emacs because there is no real terminal.
+;; But it is important to read ~/.bashrc, so we keep it here.
+;; https://emacs.stackexchange.com/questions/71487/mingw-shell-in-emacs/
+(setq explicit-bash-args (list ("--noediting" "-i"))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "Cygwin, MSYS")