all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: Shell and Shell Command
Date: Wed, 17 Dec 2014 02:17:13 +0100	[thread overview]
Message-ID: <87y4q713dy.fsf@wanadoo.es> (raw)
In-Reply-To: a3dc0f5a-4fa9-4ea5-a509-9b8c811b4133@googlegroups.com

mflynn@scu.edu writes:

> 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 few 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.

This is very strange. Do you have `bash' installed on your system?

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...

> 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:\Emacs\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.

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.

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.

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.

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.




  reply	other threads:[~2014-12-17  1:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-17  0:26 Shell and Shell Command mflynn
2014-12-17  1:17 ` Óscar Fuentes [this message]
     [not found] ` <mailman.16258.1418779199.1147.help-gnu-emacs@gnu.org>
2014-12-17 17:48   ` Mike Flynn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4q713dy.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.