joyent/node — pull request #3962 by shigeki (2012-09-04 07:25:24+00:00)
Title: cli: main module via stdin always print result

`node -p` is no longer valid in the case of pipe input as.
```bash
$echo "(function(){return 'foo'})();" | ./node -p
Error: -p requires an argument
````
And the above without `-p` prints nothing.
This commit is for being consistent printing behaviors between eval and executing main module via stdin as
```bash
$echo "(function(){return 'foo'})();" | ./node
foo
````