Mail Archives: djgpp/1996/09/02/19:53:19
Date: | Mon, 2 Sep 1996 19:46:46 -0400
|
From: | dj (DJ Delorie)
|
Message-Id: | <199609022346.TAA08816@delorie.com>
|
To: | csrabak AT dce03 DOT ipt DOT br
|
CC: | djgpp AT delorie DOT com
|
In-reply-to: | <1.5.4.16.19960902202018.388f06cc@dmeasc.rc.ipt.br> (message from Cesar Scarpini Rabak on Mon, 2 Sep 1996 23:12:18 -0300)
|
Subject: | Re: Compiling Emacs 19.34 package w/present ver of DJGPP
|
> BTW, I noticed that the is_exec.c module uses several magic numbers
> to ascertain if a given file is executable; including (u**x) shell
> scripts. The question: will DJGPP programs built with this module
> able to run shell scripts calling a sh executable (namely a port of
> sh to MS-DOG) if avaialable in the machine's path?
djgpp V2 has always been able to properly execute scripts whose first
line starts with #! by running the interpreter indicated on that line.
However, if the line is #!/bin/sh, it will try to run /bin/sh, not
just any sh.exe in your PATH. Be careful.
Also works with "#!perl", "#!awk", "#!foo.exe -s", etc.
- Raw text -