Peter Stirling <peter@...> writes:
> I'm using sb-ext:run-process to read the list of installed files from
> a .deb (using dpkg-query) as part of a larger program, but I'm getting
> peculiar results from my code. I've chopped out an illustrative chunk:
> If that is saved to e.g. "run-process-test.lisp" and executed with
> "sbcl --load run-process-test.lisp --eval '(execute-test)' ubuntu-mono"
> it prints the sbcl banner and then appears to hang. "ps x" shows a
> dpkg-query process doing nothing. If that dpkg-query process is killed
> then the script will complete, it prints a list of 975 files (and the
> count) and starts the REPL.
> However if I run "dpkg-query --listfiles ubuntu-mono" there are extra
> entries (compared to what I get from sbcl), and indeed, with
> "dpkg-query --listfiles ubuntu-mono | wc -l" I get 1672, not 975.
Pass :wait nil to run-program.
With Best Regards, Stas.