Many thanks for your thoughts, George and Shu-Hung.
Rather embarassingly, I've found my answer in what's almost the simplest
subprocess procedure:
(exit (system*/exit-code "/usr/bin/vi" "filename"))
exhibits the behaviour I want. That does all the required plumbing
flawlessly.
I'm not sure how I missed this! When I've needed to manage subprocesses
in the past, the `system` procedure (and its analogues in other
languages) has always been a bit too simple-minded to provide the
control I've required in a particular situation, so I think I
automatically skipped over it when looking here. Also, this illustrates
the perennial mistake of focusing on one solution -- how do I exec? --
rather than stepping back and asking 'what am I actually trying to do?'
Sorry for the noise....
Best wishes,
Norman
--
Norman Gray : http://www.astro.gla.ac.uk/users/norman/it/
Research IT Coordinator : School of Physics and Astronomy
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/racket-users/BE49F582-2636-4F63-9E06-917AC5657428%40glasgow.ac.uk.