Greetings.
I can't find a way of doing something equivalent to exec in Racket. Is
this Hard, or am I just missing it?
By 'exec', I mean the equivalent of replacing the process with a new
image, as distinct from `system` (and friends) or `process` (and
friends), which are concerned with creating a subprocess, controlling
it, and handling its exit.
In my particular case, I want to call vi at the end of a Racket script.
I'm sure it's possible to do that with process and friends, but it would
require being careful about input and output ports, worrying about
buffering, whether things are terminals or not, and so on and on.
I can imagine this isn't trivial as an implementation issue -- I can see
there would potentially be custodians to worry about (*waves hands
vaguely*), but I'd be surprised if it were impossible. However I'm
completely failing to find anything on [1], searching for eg 'exec' or
'return' (as in 'does not return'); and 'exec' isn't a very handy search
term on the web.
Thanks for any pointers,
Norman
[1] https://docs.racket-lang.org/reference/subprocess.html
--
Norman Gray : https://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/racket-users/9CD816A7-8DA1-4C50-9F18-534BFC65750B%40glasgow.ac.uk.