"Lui Fungsin" <fungsin.lui@...> writes:
> Can anyone explain how I can run a shell subprocess within sbcl repl?
> I tried all the combination of :input :output and :pty but it doesn't
> seem to work. I don't know enough of sbcl's internal to figure out
> what's missing.
I'm not sure what exactly is happening. I found one bug in RUN-PROGRAM, but
unfortunately unrelated to your case. Basically it seems shells don't like
being run the way SBCL prefers to run its sub-processes.
A workaround is simple, though:
(define-alien-routine system int (command c-string))
Out of curiosity, what do SIGINT and SIGSTOP (C-c and C-z) do with
the Allegro shell-command?
-- Nikodemus Schemer: "Buddha is small, clean, and serious."
Lispnik: "Buddha is big, has hairy armpits, and laughs."