/CHANGES/system-result-value

http://github.com/alimoeeny/arc · #! · 17 lines · 13 code · 4 blank · 0 comment · 0 complexity · 23892b18b1d6d27c2b25834d0f10b2f1 MD5 · raw file

  1. In mzscheme, 'system returns #t if the command it ran failed and #f otherwise.
  2. This hack makes that information available in arc; 'system returns t on success
  3. and nil on failure. In vanilla arc, 'system always returns nil.
  4. In vanilla arc:
  5. arc> (system "false")
  6. nil
  7. arc> (system "true")
  8. nil
  9. With this hack:
  10. arc> (system "false")
  11. nil
  12. arc> (system "true")
  13. t