PageRenderTime 215ms CodeModel.GetById 71ms app.highlight 8ms RepoModel.GetById 12ms app.codeStats 0ms

/CHANGES/system-result-value

http://github.com/alimoeeny/arc
#! | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | 23892b18b1d6d27c2b25834d0f10b2f1 MD5 | raw file
 1In mzscheme, 'system returns #t if the command it ran failed and #f otherwise.
 2This hack makes that information available in arc; 'system returns t on success
 3and nil on failure. In vanilla arc, 'system always returns nil.
 4
 5In vanilla arc:
 6
 7    arc> (system "false")
 8    nil
 9    arc> (system "true")
10    nil
11
12With this hack:
13
14    arc> (system "false")
15    nil
16    arc> (system "true")
17    t