guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to do "ls /tmp > /dev/null" in Guile?


From: Alex Kost
Subject: How to do "ls /tmp > /dev/null" in Guile?
Date: Sat, 19 Mar 2016 13:19:06 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hello, in the guile REPL I evaluated the following:

  (with-output-to-port (%make-void-port "w")
    (lambda () (display "foo") (newline)))

and I got no output as expected.  Then I tried the following:

  (with-output-to-port (%make-void-port "w")
    (lambda () (system* "ls" "/tmp")))

but there was an output from "ls" command.  So my question is: how to
get rid of this output?

-- 
Thanks,
Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]