diff options
| author | Tomoyuki Sahara <[email protected]> | 2013-08-30 17:04:40 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2013-08-30 17:04:40 +0900 |
| commit | 713aa48cf91d96022fbb73c117260d653a83dac2 (patch) | |
| tree | 6046beee333fe594eb6e2a88d302000bb0f7497c | |
| parent | 9dc875f2460433e5f69eaf0a2dbb560e414db789 (diff) | |
| download | mruby-713aa48cf91d96022fbb73c117260d653a83dac2.tar.gz mruby-713aa48cf91d96022fbb73c117260d653a83dac2.zip | |
STDERR's file descriptor is 2.
closes #1
| -rw-r--r-- | mrblib/io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/io.rb b/mrblib/io.rb index 990a4b92d..1fcd44b28 100644 --- a/mrblib/io.rb +++ b/mrblib/io.rb @@ -282,7 +282,7 @@ end STDIN = IO.open(0, "r") STDOUT = IO.open(1, "w") -STDERR = IO.open(1, "w") +STDERR = IO.open(2, "w") $stdin = STDIN $stdout = STDOUT |
