From: Nikodemus S. <nik...@ra...> - 2006-06-08 11:07:32
|
"Lui Fungsin" <fun...@gm...> 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)) (system "/bin/sh") Out of curiosity, what do SIGINT and SIGSTOP (C-c and C-z) do with the Allegro shell-command? Cheers, -- Nikodemus Schemer: "Buddha is small, clean, and serious." Lispnik: "Buddha is big, has hairy armpits, and laughs." |