[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: scheme system stdout and markup predicates
From: |
Carl Sorensen |
Subject: |
RE: scheme system stdout and markup predicates |
Date: |
Tue, 23 Aug 2011 08:02:31 -0600 |
>>> 2: Is there a way to get the result code and see if the command succeded?
>> Uh, have you even looked up "system" in the guile documentation?
> Yes I have ... but I typed my question a bit to fast ... the question
> should have been, why does '(if (not (system ...' not act, like I would
> expect. But with '(if (= 0 (system ...' it does.
Scheme doesn't use 0 for the false value, it's #f. So a return of 0 is not #t.
HTH,
Carl