Easily reproduced with:
var repl = require('repl');
var connections = 0;
repl.start({
prompt: 'Node.js via stdin> ',
input: process.stdin,
output: process.stdout
});
Actual:
$ t2 run repl.js
INFO Looking for your Tessel...
INFO Connected to bishop.
INFO Building project.
INFO Writing project to RAM on bishop (96.256 kB)...
INFO Deployed.
INFO Running repl.js...
Node.js via stdin> 1
Expected:
$ t2 run repl.js
INFO Looking for your Tessel...
INFO Connected to bishop.
INFO Building project.
INFO Writing project to RAM on bishop (96.256 kB)...
INFO Deployed.
INFO Running repl.js...
Node.js via stdin> 1
1
Node.js via stdin> 1 + 2
3
Node.js via stdin>
If you run with just node.js:
$ node repl.js
Node.js via stdin> 1
1
Node.js via stdin> 1 + 2
3
Node.js via stdin>