Re: cygwin shell problem
Adrian Aichner <[email protected]>
| Newsgroups | gmane.emacs.xemacs.windows |
|---|---|
| Organization | The XEmacs Project |
| Message-ID | <[email protected]> |
>>>>> "Peekay" == Peekay Chan <Chan> writes:
Peekay> Hi all, I have downloaded and compiled xemacs 21.5.10 for
Peekay> both Cygwin Native and Windows Native. Everything works
Peekay> great except the Bash shell.
Peekay> My init.el
>>>>>>>>>>>>
Peekay> (setq exec-path (cons "c:/cygwin/bin" exec-path))
Peekay> (setq process-coding-system-alist '(("bash" . undecided-unix)))
Peekay> (setq w32-quote-process-args ?\")
Peekay> (setq shell-file-name "bash")
Peekay> (setenv "SHELL" shell-file-name)
Peekay> (setq explicit-shell-file-name shell-file-name)
Peekay> (add-hook 'comint-output-filter-functions
Peekay> 'comint-strip-ctrl-m)
Peekay> (setq shell-command-switch "-exec")
Try
(setq shell-command-switch "-c")
instead.
>>>>>>>>>>>>
Peekay> Problem #1: The cygwin shell and xemacs dir are out of sync. When I type
Peekay> "cd c:" in the shell, cygwin changes to /cygdrive/c, then when I type "dirs"
Peekay> in xemacs, it complains "c:\cygdrive\c" is not a directory.
Peekay> Problem #2: When I press tab for auto-completion directory, it always use
Peekay> "\" as in Windows Command Prompt.
Peekay> I have a feeling these are related but just couldn't figure out what is
Peekay> causing it.
Peekay> Any advice will be greatly appreciated.
Peekay> Peekay
--
Adrian Aichner
mailto:[email protected]
http://www.xemacs.org/