"exec" in Emacs lisp?
In an Emacs lisp script, I would like the script to start a new process and replace itself with the running process, in the same way it can be achieved with "exec" in Bash or Perl.
To clarify a usage example, I am writing a command shell in Elisp (using emacs --script
) and would like to run the wrapped command as is in some cases.
Is it really possible?
+3
Arno
source
to share
1 answer
No. emacs is not a "shell" or true scripting interpreter.
Perhaps you can do your problem inside out, albeit having a shell script that either executes emacs or some other command, and perhaps this solution can be accomplished with some elisp code in the original emacs instance.
+3
Greg A. Woods
source
to share