jashkenas/coffee-script — Issue #2001: piped input to REPL throws error
Author: michaelficarra
Created: 2012-01-03 20:09:48+00:00
State: open
Labels: bug

```
$ echo 0 | coffee

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
AssertionError: stdin must be initialized before calling setRawMode
at Object.setRawMode (tty.js:37:10)
at new Interface (readline.js:89:9)
at Object.createInterface (readline.js:38:10)
at Object. (/home/michael/projects/coffee-script/lib/coffee-script/repl.js:40:21)
at Object. (/home/michael/projects/coffee-script/lib/coffee-script/repl.js:185:4)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
```