This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bash under emacs (NT)


RC> I have a problem running bash under emacs-20.3.6.1.1. I managed to get
RC> it to call bash correctly, but once I have the prompt I can't seem to
RC> get it to remove ^M's that are mucking it up somehow. this is what I
RC> get:

RC> bash.exe-2.02$
RC> bash.exe: ^M: command not found
RC> bash.exe-2.02$ ls
RC> bash.exe: ls^M: command not found
RC> bash.exe-2.02$

RC> I have looked and looked through cygwin's docs, faq's and mailing list
RC> archives and haven't found anything relevant.

RC> Hopefully,

RC> Rob
put that in your .emacs file
----------------
(require 'shell )
(let ((coding-system-for-write 'no-conversion)
      (coding-system-for-read 'iso-latin-1-unix)
      (original-shell (getenv "SHELL"))
      (ori-sfn shell-file-name)
      (explicit-bash-args '("-i"))
      )
  (setenv "SHELL" (expand-file-name "c:/cygnus/cygwin-b20/H-i586-cygwin32/bin/bash.exe" ))
  (setq-default shell-file-name (getenv "SHELL")))
----------------

Best regards!
Alexey Voinov



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]