From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Flynn Newsgroups: gmane.emacs.help Subject: Re: Shell and Shell Command Date: Wed, 17 Dec 2014 09:48:42 -0800 (PST) Message-ID: <81c3293d-3325-4907-9e40-17ba3a638981@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1418838628 3920 80.91.229.3 (17 Dec 2014 17:50:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2014 17:50:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 17 18:50:21 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y1Ijs-0003M0-Oo for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 18:50:20 +0100 Original-Received: from localhost ([::1]:50915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Ijs-0004y6-69 for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 12:50:20 -0500 X-Received: by 10.70.96.132 with SMTP id ds4mr8252101pdb.0.1418838523086; Wed, 17 Dec 2014 09:48:43 -0800 (PST) X-Received: by 10.50.79.197 with SMTP id l5mr195379igx.17.1418838522940; Wed, 17 Dec 2014 09:48:42 -0800 (PST) Original-Path: usenet.stanford.edu!h15no12716394igd.0!news-out.google.com!h6ni559igv.0!nntp.google.com!h15no24228282igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=129.210.51.232; posting-account=KIvACwkAAACqw8z2Rbtn9ImPywkjXOa4 Original-NNTP-Posting-Host: 129.210.51.232 User-Agent: G2/1.0 Injection-Date: Wed, 17 Dec 2014 17:48:42 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:209365 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101644 Archived-At: On Tuesday, December 16, 2014 5:20:01 PM UTC-8, =D3scar Fuentes wrote: > mflynn@scu.edu writes: >=20 > > Hi, > > I installed 24.4.1 from the mingw32 build. Here's what I get if I run = the version command: > > GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 > > > > I had previous versions on Emacs installed. > > I extracted the 24.4 files from the zip and started the executable a fe= w times by running runemacs.exe > > > > If previous jobs I had got used to using bash as the shell in emacs. > > In my current job I do not program so much and I had not got the shell > > commands to work. I was excited therfore to see was that ESC-! and > > ESC-x shell worked out of the box, and that they ran bash commands or > > started a bash shell. >=20 > This is very strange. Do you have `bash' installed on your system? >=20 > Anyways, Emacs defaults to cmd.exe on Windows. Do you have any package > that brings in Unix-like commands? Examples are Gnuwin32, MSYS, MSYS2, > MSYSGit, Cygwin... >=20 > > Then I noticed a little typo in the name of the directory where I had > > unpacked Emacs. So I deleted all the old stuff and unpacked Emacs > > again. Now shell and Esc-! shell-command start a DOS shell and accept > > only DOS commands. > > > > Then I realized I had not moved the PATH to the new installation, so I > > edited the Windows PATH variable (the directory structure seems > > different from Emacs of a couple of years ago). > > > > But still no bash shell - only DOS. > > > > What do I need to do? > > > > PATH is : > > C:\Emacs;C:\Emacs\share\emacs\24.4\etc;C:\Emacs\share\info;C:\Emacs\bin= ;C:\Emacs\share\emacs\24.4\lisp;C:\Emacs\share\emacs\24.4\site-lisp;C:\Emac= s\share\info;C:\Emacs\share\man;C:\Emacs\share\man\man1; > > > > I know it's overkill, but I don't know what the minimum would be. >=20 > As far as Emacs is concerned, you only need c:\Emacs\bin in your PATH. > And you don't really need that if you always execute runemacs.exe with a > fully qualified pathname (c:\Emacs\bin\runemacs.exe in your case) as > usually is done when usin a Windows shortcut. >=20 > However, there is much missing on your PATH. It lacks the Windows system > directories. So you either are not showing the full contents of PATH or > you overwrote it with the Emacs directories instead of > appending/prepending them, which is the correct practice. >=20 > I suspect that you have one of the Unix-like packages mentioned above, > that the directory where those Unix-like binaries are installed on was > previously listed on your PATH (or they were on the same directory were > you installed Emacs the first time) and that you thought that you were > running `bash' when in reality you were running the `ls.exe', `cp.exe`, > etc binaries of the Unix-like package. >=20 > BTW, it is possible to use `bash' as the Emacs shell on Windows. It has > some caveats, though. There are several places on the Web that explain > it. Thanks. I set the path to just the emacs bin and emacs works just fine. I'll investigate what the best solution is to having a unix-like shell star= t when I invoke Esc-x shell. =20 I'm really baffled as to why I saw the bash-like behavior when I first star= ted it. I don't have any unix packages installed. Maybe I imagined it. = =20