Date: Tue, 15 Oct 2002 16:09:35 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Steuer <martinSteuer AT gmx DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Dos-Emacs and default shell
In-Reply-To: <5.1.1.6.2.20021015111649.009e3050@pop.gmx.net>
Message-ID: <Pine.SUN.3.91.1021015160651.11755B-100000@is>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com
Precedence: bulk


On Tue, 15 Oct 2002, Martin Steuer wrote:

> Whenever i try to invoke this function, Emacs tries to run /bin/sh. Is it 
> somehow possible to setup command.com as the default shell?
> I tried 2 things:
> -pointing the environment var SHELL to command.com
> -inserting the line (setq explicit-shell-file-name "c:/windows/command.com")
> 
> But this both doesn't help. Do I need sh?

You don't need sh, but to get what you want you will have to hack 
feedmail.el to replace the explicit "/bin/sh" with shell-file-name and 
"-c" with shell-command-switch.  The fact that feedmail doesn't do that 
itself is a bug.

Don't forget to byte-compile feedmail.el after you change it!