unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* How to do "ls /tmp > /dev/null" in Guile?
@ 2016-03-19 10:19 Alex Kost
  2016-03-19 11:02 ` Marko Rauhamaa
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Kost @ 2016-03-19 10:19 UTC (permalink / raw)
  To: guile-user

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-21  9:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-19 10:19 How to do "ls /tmp > /dev/null" in Guile? Alex Kost
2016-03-19 11:02 ` Marko Rauhamaa
2016-03-20  8:32   ` Alex Kost
2016-03-20  9:23     ` Marko Rauhamaa
2016-03-21  9:40       ` Alex Kost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).