Mail Archives: djgpp/1997/05/26/06:10:59
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 -