{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/5055","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/5055/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/5055/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/5055/events","html_url":"https://github.com/meteor/meteor/issues/5055","id":103741274,"number":5055,"title":"`echo 1+1 | meteor shell` should print \"2\"","user":{"login":"avital","id":37586,"avatar_url":"https://avatars.githubusercontent.com/u/37586?v=3","gravatar_id":"","url":"https://api.github.com/users/avital","html_url":"https://github.com/avital","followers_url":"https://api.github.com/users/avital/followers","following_url":"https://api.github.com/users/avital/following{/other_user}","gists_url":"https://api.github.com/users/avital/gists{/gist_id}","starred_url":"https://api.github.com/users/avital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avital/subscriptions","organizations_url":"https://api.github.com/users/avital/orgs","repos_url":"https://api.github.com/users/avital/repos","events_url":"https://api.github.com/users/avital/events{/privacy}","received_events_url":"https://api.github.com/users/avital/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Tool:Shell","name":"Project:Tool:Shell","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-28T15:37:25Z","updated_at":"2016-05-23T15:01:01Z","closed_at":null,"body":"This makes it very hard to use `meteor shell` for scripting.\r\n\r\n```\r\n$ meteor &\r\n\r\n$ echo | meteor shell\r\n\r\nWelcome to the server-side interactive shell!\r\n\r\nTab completion is enabled for global variables.\r\n\r\nType .reload to restart the server and the shell.\r\nType .exit to disconnect from the server and leave the shell.\r\nType .help for additional help.\r\n\r\n\r\n/Users/avital/.meteor/packages/meteor-tool/.1.1.4.1k57gpn++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/shell-client.js:106\r\n    process.stdin.setRawMode(true);\r\n                  ^\r\nTypeError: Object #<Socket> has no method 'setRawMode'\r\n    at Socket.onConnect (/Users/avital/.meteor/packages/meteor-tool/.1.1.4.1k57gpn++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/shell-client.js:106:19)\r\n    at Socket.emit (events.js:117:20)\r\n    at Object.afterConnect [as oncomplete] (net.js:887:10)\r\n```"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/221005083","html_url":"https://github.com/meteor/meteor/issues/5055#issuecomment-221005083","issue_url":"https://api.github.com/repos/meteor/meteor/issues/5055","id":221005083,"user":{"login":"abernix","id":841294,"avatar_url":"https://avatars.githubusercontent.com/u/841294?v=3","gravatar_id":"","url":"https://api.github.com/users/abernix","html_url":"https://github.com/abernix","followers_url":"https://api.github.com/users/abernix/followers","following_url":"https://api.github.com/users/abernix/following{/other_user}","gists_url":"https://api.github.com/users/abernix/gists{/gist_id}","starred_url":"https://api.github.com/users/abernix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abernix/subscriptions","organizations_url":"https://api.github.com/users/abernix/orgs","repos_url":"https://api.github.com/users/abernix/repos","events_url":"https://api.github.com/users/abernix/events{/privacy}","received_events_url":"https://api.github.com/users/abernix/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T15:01:01Z","updated_at":"2016-05-23T15:01:01Z","body":"Shouldn't this work exactly the same as the Node REPL?  You wouldn't be able to `echo 1+1 | meteor shell`, but you could do `echo 'console.log(1+1);' | meteor shell`.\r\n\r\nCurrently in node:\r\n```sh\r\n$ echo 'console.log(1+1);' | node\r\n2\r\n```\r\n\r\nIssue-topic-wise though, this seems to be a duplicate of #3927."}}
{"actor":{"display_login":"abernix"}}