sellout/external-program

Windows compatibility

Goheeca opened this issue · 5 comments

In SBCL implementation external-program is looking for /usr/bin/env which is nonexistent in Windows.

I just tried to load cl-ana on Windows which uses external-program for gnuplot, and ran into this problem. This is probably bad on GNU/Linux too, as it assumes env is in /usr/bin and not /bin or somewhere else. If it used the %PATH% it could at least find the Cygwin env on Windows.

Any plans to fix this? I'd use UIOP for portability, but I need a way to get the process object.

The problem is that it's using the windows feature test which is non-standard. It should depend on trivial-features to provide that.

@eudoxia0 What running an (asynchronous) external project gives you differs dramatically by platform. CLISP gives you nothing. LispWorks gives you a stream. Others give you a PID. And uiop/run-program::%run-program does make (all of) that available as the :process field in the plist it returns. What do you want to do with the process object anyway?

Fixed with a7af2ef.