This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

re: system call and results ...


> *--------------------------------------
> |
> | guile> (format #f "test\n")
> | "test
> | "
> | guile> (format #t "test\n")
> | test
> | guile>
> |
> 
> Hope this helps


Well, not really: I don't thing you understood my question, let me take an
even simpler example:

        guile> (define date (system "date '+%d-%m-%Y'"))
        16-09-2000
        guile> date
        0

you see, I want that 'date' gets bound to the result of the system call,
not the shell exit code

i know this probably involves redefining output port and reading it, but i
was hoping a simple example just to be quicker

thanks
david
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]