# HG changeset patch # User Oleksandr Gavenko # Date 1670690097 -7200 # Node ID 5cabf87dd450042f95ab9fdeb35f460011c13fb3 # Parent a40a9f231aa0ea0e308443656af9769c00d1cd38 Fixed M-x shell in Mingw Emacs, Bash "-i" is not supported in dumb Emacs terminal. bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell tput: unknown terminal "emacs" diff -r a40a9f231aa0 -r 5cabf87dd450 .emacs-my --- a/.emacs-my Mon Nov 28 23:05:00 2022 +0200 +++ b/.emacs-my Sat Dec 10 18:34:57 2022 +0200 @@ -571,7 +571,11 @@ (cl-eval-when (compile) (require 'shell)) -(setq explicit-bash-args '("-i")) +(setq explicit-bash-args + (if (eq system-type 'windows-nt) + ;; https://emacs.stackexchange.com/questions/71487/mingw-shell-in-emacs/ + (list "--login") + (list "-i"))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (message "Cygwin, MSYS")