[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [h-e-w] bash commands
From: |
Flynn, Michael |
Subject: |
RE: [h-e-w] bash commands |
Date: |
Fri, 18 Jan 2002 10:24:36 -0800 |
Hi,
I have the cygwin bin and the emacs bin in my PATH and this in my _emacs
(given to me by someone on this list):
;; Shell stuff
;; These few lines are needed so that we can do shell-command and shell
(setq binary-process-input t)
(setq shell-file-name "bash")
(setq shell-command-switch "-ic")
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name "bash")
(setq explicit-sh-args '("-login" "-i"))
(setq w32-quote-process-args ?\") ;; Use Cygnus quoting rules.
(setq shell-multiple-shells t) ;; generate a new shell each time.
;; end Shell stuff
I can run all shell commands and I can start a shell and run anything in it.
I hope this helps.
Good luck,
Michael
> -----Original Message-----
> From: Morgan V. Cundiff [mailto:address@hidden
> Sent: Friday, January 18, 2002 9:49 AM
> To: address@hidden
> Subject: [h-e-w] bash commands
>
>
>
> I just installed cygwin bash. I added c:\cygwin\bin to my
> PATH vaariable
> and all the commands and programs that are in that directory
> run fine both
> from windows 2000 command line and the bash shell prompt.
> However when I
> start up bash in emacs (M-q shell) the bash shell starts up but when I
> type a command, some commands work (such as ls or pwd) but most do not
> (such as mkdir, cat, du, etc.). What is going on here. How do
> you make bash running
> within emacs aware of the programs that are in c:\cygwin\bin
> directory?
>
> Here is what i have in .emacs regarding bash:
>
> (setq exec-path (cons "c:\\cygwin\\bin" exec-path))
> (setenv "SHELL" "c:\\cygwin\\bin\\bash.exe")
> (setq shell-file-name "c:\\cygwin\\bin\\bash.exe")
>
>
> Thanks,
> Morgan Cundiff
>
>