help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Emacs Lisp for script writing


From: Tim X
Subject: Re: Using Emacs Lisp for script writing
Date: Tue, 22 Dec 2009 23:51:01 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

Cecil Westerhof <address@hidden> writes:

>
> It is not a big deal, but when the script is put on another system and
> on this system clisp is in another location, the script has to be
> modified (or a link has to be created). But halving the execution time
> is important enough.

There is a trick used by other scripting languages to get around the
issue of the script interpreter being in a different location and for
those systems which only handle 30 characters in the #! line

#!/bin/sh 
# the next line restarts using the interpreter foobar \
exec foobar "$0" "$@"

I wonder if something like this cold work. The problem I see is that
clisp would have to be told to ignore these lines and only start
evaluating code from the line following the exec. I'm not familiar
enough with the lisp reader to know. the other problem is that if it
needed changes to the reader, then those changes would also need to be
on the host you attempt to run this one, so unless it was a standard
feature, it probably woldn't buy much. 

just thinking out loud.....

Tim

-- 
tcross (at) rapttech dot com dot au


reply via email to

[Prev in Thread] Current Thread [Next in Thread]