From: z_axis <z_...@16...> - 2014-11-08 02:34:39
|
There is a funtion in utils.lisp as below: (defun sh (cmd) (ccl:run-program "/bin/sh" (list "-c" cmd) :input nil :output *standard-output*)) $fx86cl -n -Q -l utils -e '(progn (m:sh "ls") (ccl:quit))' works without any junks. However, $maxima --very-quiet -X '-n -Q' -p utils.lisp --batch-string=':lisp (m:sh "ls");' will output as below: Lisp options: (-n -Q)Desktop HyperSpec tmp.tex ... #<EXTERNAL-PROCESS (/bin/sh -c ls)[935] (EXITED : 0) #x385E9896> Can maxima pretty print it as: Lisp options: (-n -Q) Desktop HyperSpec tmp.tex ... Especially suppressing the tail "#<EXTERNAL-PROCESS ...". Regards! ----- e^(π.i) + 1 = 0 |