After latest cygwin upgrade (5 weeks or so) I have started getting this weird error from Emacs. Does anyone know what can I do? The terminfo settings seesm to be in proper places: //root@W2KPICASSO /usr/lib/terminfo $ infocmp emacs # Reconstructed via infocmp from file: /usr/share/terminfo/e/emacs emacs, am, gn, cols#80, bel=^G, cr=^M, cud1=^J, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, Now If I start this in plain vanilla Emacs (20.7 and 21.1): with M-x bash: (defun my-bash () "Runs the Cygwin bash shell" (interactive) (require 'comint) (require 'shell) (if (comint-check-proc "*bash*") (pop-to-buffer "*bash*") (let* ((shell-file-name "bash") (explicit-shell-file-name shell-file-name) (explicit-sh-args '("-login" "-i")) (w32-quote-process-args ?\"));; Use Cygnus quoting rules. (shell) (make-local-variable 'comint-completion-addsuffix) (setq comint-completion-addsuffix '("/" . "")) (rename-buffer (generate-new-buffer-name "*bash*"))))) The shell buffer prints bizarre output every time: readline: warning: rl_prep_terminal: cannot get terminal settings//root@W2KPICASSO ~/elisp/rc $ readline: warning: rl_prep_terminal: cannot get terminal settings//root@W2KPICASSO ~/elisp/rc $ echo $TERM emacs readline: warning: rl_prep_terminal: cannot get terminal settings//root@W2KPICASSO ~/elisp/rc $ readline: warning: rl_prep_terminal: cannot get terminal settings//root@W2KPICASSO ~/elisp/rc $ Any suggestions? This is irrating and makes shell unusable. Jari -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/