unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Bug in system?
@ 2012-11-07  2:49 Keith Wright
  2012-11-07  4:30 ` Daniel Hartwig
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Keith Wright @ 2012-11-07  2:49 UTC (permalink / raw)
  To: guile-user


 > (define x (with-output-to-string (lambda()(display  "joy"))))
 > x
  $1 = "joy"

This is as expected.

 > (define y (with-output-to-string (lambda()(system "date"))))
  Tue Nov  6 21:42:41 EST 2012
 > y
  $2 = ""

The stdout of the system call does not go into the string,
why not?

-- 
     -- Keith Wright  <kwright@free-comp-shop.com>

Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com>
         ---  Food, Shelter, Source code.  ---



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

end of thread, other threads:[~2012-11-07 18:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07  2:49 Bug in system? Keith Wright
2012-11-07  4:30 ` Daniel Hartwig
2012-11-07  4:34   ` Daniel Hartwig
2012-11-07 15:06 ` Ludovic Courtès
2012-11-07 18:15 ` Alexei Matveev

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).