From owner-ntemacs-users@trout  Wed Apr  9 19:21:16 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Wed" " 9" "April" "1997" "18:37:49" "-0700" "jpayne@marimba.com" "jpayne@marimba.com" nil "119" "Re: Shell under NT?" "^From:" nil nil "4" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id TAA20516 for <voelker@june.cs.washington.edu>; Wed, 9 Apr 1997 19:21:16 -0700
Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id TAA28986 for <voelker@joker.cs.washington.edu>; Wed, 9 Apr 1997 19:21:15 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id SAA04646 for <ntemacs-users@trout.cs.washington.edu>; Wed, 9 Apr 1997 18:44:03 -0700 (PDT)
Received: from marimba.com (marimba.com [207.33.72.2]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id SAA18736 for <ntemacs-users@cs.washington.edu>; Wed, 9 Apr 1997 18:44:02 -0700
Received: from molasses by marimba.com (SMI-8.6/SMI-SVR4) 	id SAA07752; Wed, 9 Apr 1997 18:41:45 -0700
Message-ID: <334C446D.DF762DBD@marimba.com>
Organization: Marimba, Inc
X-Mailer: Mozilla 4.0b3 [en] (WinNT; I)
MIME-Version: 1.0
X-Priority: 3 (Normal)
References: <01BC44F5.12ACEBD0@DRACO>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: jpayne <jpayne@marimba.com>
To: Jeff Whitmire <whitmire@wrc.xerox.com>
CC: "'ntemacs-users@cs.washington.edu'" <ntemacs-users@cs.washington.edu>
Subject: Re: Shell under NT?
Date: Wed, 09 Apr 1997 18:37:49 -0700

Hi there,

I have a pretty darn nice setup with shells right now.  I made the
switch to bash, and I use it within emacs.  I am able to run multiple
shells, including multiple compiles and grep, without any trouble, on
Win95 and WinNT.

The nice thing about bash it's as free as emacs is!

Here are some of the things I had to do to make it work:

In my .emacs:

(if PC
    (progn
      (using-unix-filesystems t)
      (setq shell-file-name "sh")
      (setq explicit-shell-file-name shell-file-name)
      (setq explicit-sh-args '("-login" "-i"))
      (setq shell-command-switch "-c")
      (setq archive-zip-use-pkzip nil)
      (setenv "SHELL" shell-file-name)
      (setq win32-quote-process-args t)
      (setq win32-enable-italics t)
      (setq comint-process-echoes nil)
;home (set-default-font "-*-Courier
New-normal-r-*-*-12-90-*-*-c-*-*-ansi-")
      (set-default-font "-*-Courier
New-normal-r-*-*-13-97-*-*-c-*-*-ansi-")
      (menu-bar-mode 0)))

Then I had to get the cygnus release, and install sh.exe in my path some
place.  sh.exe and bash.exe are the same thing I believe.

I had to arrange my PATH env variable so that it included the cygnus bin
directory in the path, so that Emacs could find the shell from its path.

I also made sure that my HOME environment variable was set, and I set it
using forward slashes to get around a bug in bash.  Then I have my
.bash_profile and my .bashrc files.  Here's the .bashrc:

if [ "$TERM" = "dumb" ] ; then
    alias ls="ls -F --color"
else
    alias ls="ls -F";
fi

alias cp="cp -i"
alias mv="mv -i"

function setpath {
    export
PATH=/cygnus/H-i386-cygwin32/bin:/jpayne/bin:.:$JAVA/bin:/msdev/bin:/winnt/system32
}

function setclasspath {
    export
CLASSPATH="$PWD/classes;/bongo.work/install.win32/Bongo/lib/bongo.zip;."
}


function setjava {
    JAVA=$*
    setpath;
}

And here's my .bash_profile:

export HOME=d:/jpayne

export INPUTRC=~/.inputrc
export HISTSIZE=64
unset HISTFILE

export ENV=$HOME/.bashrc
source $HOME/.bashrc

umask 2

export USER=jpayne
export NNTPSERVER=nntp.best.com

if [ "$TERM" = "dumb" ] ; then
    set -o emacs
    PS1="[01;36m[\w]\n$ [0m";
else
    PS1="[\w]\n$ "
fi

setjava /jdk1.1.1


Jeff Whitmire wrote:
> 
> I have just got ntemacs up and running well under NT 4.0.  The only =
> major piece I have not been able to successfully get running is the =
> shell command.  I have tried using the suggestions from the FAQ for =
> doing the default winnt shell, and tried the tcsh shell.  I can't get =
> anything to work with tcsh, and I can get the winnt shell running enough =
> to change directories and do directory listings, but as soon as I try to =
> actually run something in the shell, it hangs and I have to kill the =
> buffer.  Anybody got this running successfully?  I do a lot of python =
> work, and it would be wonderful to be able to crank up python in a =
> shell.
> 
> Any help would be greatly appreciated.
> Jeff Whitmire.
> 
> +--------------------------------------------------------------
> | Jeff Whitmire
> | Xerox Wilson Research Center    email: whitmire@wrc.xerox.com  =20
> | 800 Phillips Road M/S 128-51E   phone: 716-422-3602
> | Webster, NY  14580
> +--------------------------------------------------------------

-- 
Jonathan Payne					    jpayne@marimba.com
Marimba, Inc.					phone:  (415) 328-JAVA
http://www.marimba.com		 http://www.marimba.com/people/jpayne/

