delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/26/06:10:59

Date: Mon, 26 May 1997 13:09:35 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: eyal DOT ben-david AT aks DOT com
cc: djgpp AT delorie DOT com
Subject: Re: problem: EMACS and RCS
In-Reply-To: <C22564A3.00306C47.00@aks.com>
Message-ID: <Pine.SUN.3.91.970526130242.8574A-100000@is>
MIME-Version: 1.0

On Mon, 26 May 1997 eyal DOT ben-david AT aks DOT com wrote:

> runs it by invoking  "/bin/sh"  (hard-coded). I changed the string
> "/bin/sh" to just "sh" , compiled it and copied it to Emacs/lisp 
> directory. Now it works fine since "sh" is found on the PATH.

A better change is to replace "/bin/sh" with this:

	(if (eq system-type 'ms-dos) "sh" "/bin/sh")

That way, it will work on both MS-DOS and Unix.  (Unix needs an explicit
/bin/sh because they want to be sure the default shell is invoked, whereas
on MS-DOS, the probability that you would install and incompatible "sh" 
is very small indeed.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019