How to run the bash shell within Emacs

How to run the bash shell within Emacs

Post by Reli Tal MIR » Sat, 18 Jul 1998 04:00:00

I am invoking  Emacs 19.34.6 from within the bash shell. When trying to
start a shell subprocess within Emacs (M-x shell) I get "Spawning child
process: invalid argument".

I have  the following for running bash with Emacs 19.43 in my .emcas:

    (setq win32-quote-process-args ?\")
    (setq shell-command-switch "-c")
    (load "comint")
    (fset 'original-comint-exec-1 (symbol-function 'comint-exec-1))
    (defun comint-exec-1 (name buffer command switches)
      (let ((binary-process-input t)
            (binary-process-output nil))
        (original-comint-exec-1 name buffer command switches)))

Any help is appreciated.



1. Using control keys in bash shell within emacs


I'm using cygwin bash, 2.05b, as my NTEmacs shell (GNU Emacs 21.2.1
(i386-msvc-nt5.1.2600) of 2002-03-19 on buffy).  Is there any way to have
(e.g.) C-p, scroll through the history, instead of the default emacs
behaviour of moving to the previous line in a buffer.  I tried:

    set -o emacs

in my .bash_profile/.bashrc, but that didn't work.  Works fine when I kick
off cygwin bash outside of NTEmacs.  If this kind of thing doesn't work, can
someone explain the advantage of kicking off a bash shell inside of Emacs?



2. DCT vs FFT

3. pwd problem in shell run within emacs

4. ANNOUNCE: IEEE ParaScope: Parallel Computing Links

5. Trouble running shell programs within emacs..

6. help please

7. Running several shells within emacs

8. info: Another DOS MPEG decoder/player posted

9. running shell within emacs

10. running a perl/shell script from within xemacs

11. Running bash under emacs

12. running bash with emacs