# HG changeset patch # User Oleksandr Gavenko # Date 1671809407 -7200 # Node ID b3cac228754724b95641094ca2c10124b10349e8 # Parent fd3589f241709d7d3b7b2f56c7c919a8c6e6e5f8 It is important to read ~/.bashrc despite MSYS2 Bash warn about ioctl failure in M-x shell in NT Emacs. diff -r fd3589f24170 -r b3cac2287547 .emacs-my --- 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")