From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: man.el should avoid "sh" Date: Fri, 16 Apr 2004 16:53:57 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <40806405.5000103@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1082156122 25549 80.91.224.253 (16 Apr 2004 22:55:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2004 22:55:22 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 17 00:55:11 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BEcEp-0003yP-01 for ; Sat, 17 Apr 2004 00:55:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BEcE9-0006xf-Ew for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Apr 2004 18:54:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BEcE6-0006vE-CZ for bug-gnu-emacs@prep.ai.mit.edu; Fri, 16 Apr 2004 18:54:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BEcDa-0006m8-Cq for bug-gnu-emacs@prep.ai.mit.edu; Fri, 16 Apr 2004 18:54:25 -0400 Original-Received: from [216.168.1.22] (helo=trinity.supernews.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BEcDa-0006lv-2V for bug-gnu-emacs@prep.ai.mit.edu; Fri, 16 Apr 2004 18:53:54 -0400 Original-Received: from mail.fu-berlin.de ([130.133.1.2]:3981) by trinity.supernews.net with esmtp (Exim 4.24; FreeBSD) id 1BEcDY-000FX0-BS for gnu-emacs-bug@moderators.isc.org; Fri, 16 Apr 2004 22:53:52 +0000 Original-Received: by Mail.FU-Berlin.DE (Exim 4.31) from curry.zedat.fu-berlin.de ([160.45.10.36]) for gnu-emacs-bug@moderators.isc.org with esmtp id <1BEcDQ-000HrN-LY>; Sat, 17 Apr 2004 00:53:44 +0200 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Sat, 17 Apr 2004 00:53:44 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 18 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1082156024 4692531 I 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:7627 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:7627 Max Polk wrote: > Running emacs in Windows, by typing "M-x man ls" I get an error > message that "sh" is not found. > > Here's a minor fix for man.el, line 618: > > - (start-process manual-program buffer "sh" "-c" > + (start-process manual-program buffer shell-file-name "-c" > > This replaces the hard-coded "sh" with the variable shell-file-name. > Notice that just below this shell-file-name is used and not "sh" so > maybe it got fixed in one place but not the other. You should also replace "-c" with shell-command-switch. -- Kevin Rodgers