Permalink
Browse files

output to STDOUT and exit successfully

MacRuby has a tendency to blurt out SIMBL-related errors (for example)
on STDERR, so outputting to STDOUT makes it easier to distinguish (as
well as to capture output). [mojodna]
  • Loading branch information...
1 parent f6f9442 commit a3fa1f69053d2abe0e075f3781d9487d3eb38be6 @defunkt committed Sep 12, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/lyndon
View
3 bin/lyndon 100755 → 100644
@@ -8,7 +8,8 @@ require 'lyndon/repl'
if STDIN.stat.size > 0
input = STDIN.read
- abort Lyndon.parse(input)
+ puts Lyndon.parse(input)
+ exit
end
case ARGV.first

0 comments on commit a3fa1f6

Please sign in to comment.