{"action":"created","comment":{"url":"https://api.github.com/repos/shelljs/shelljs/pulls/comments/89943420","pull_request_review_id":10470834,"id":89943420,"diff_hunk":"@@ -23,12 +27,23 @@ function _echo(opts, messages) {\n   // allow strings starting with '-', see issue #20\n   messages = [].slice.call(arguments, opts ? 0 : 1);\n \n-  if (messages[0] === '-e') {\n-    // ignore -e\n+  var option = ['-e', '-n', '-ne', '-en'].indexOf(messages[0]);\n+  var output;\n+\n+  if (option >= 0) {","path":"src/echo.js","position":null,"original_position":30,"commit_id":"4f4b422740a678a0c9e8ccaeb2c447c1c9b291e9","original_commit_id":"828253917eac9cf9e1ead195defd62ec6fb43776","user":{"login":"freitagbr","id":5988055,"avatar_url":"https://avatars.githubusercontent.com/u/5988055?v=3","gravatar_id":"","url":"https://api.github.com/users/freitagbr","html_url":"https://github.com/freitagbr","followers_url":"https://api.github.com/users/freitagbr/followers","following_url":"https://api.github.com/users/freitagbr/following{/other_user}","gists_url":"https://api.github.com/users/freitagbr/gists{/gist_id}","starred_url":"https://api.github.com/users/freitagbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freitagbr/subscriptions","organizations_url":"https://api.github.com/users/freitagbr/orgs","repos_url":"https://api.github.com/users/freitagbr/repos","events_url":"https://api.github.com/users/freitagbr/events{/privacy}","received_events_url":"https://api.github.com/users/freitagbr/received_events","type":"User","site_admin":false},"body":"Ok, I've added a function to `echo.js` that parses options just for `echo`. This means adding `-E` later on will be easier.","created_at":"2016-11-29T05:28:53Z","updated_at":"2016-11-29T05:28:53Z","html_url":"https://github.com/shelljs/shelljs/pull/590#discussion_r89943420","pull_request_url":"https://api.github.com/repos/shelljs/shelljs/pulls/590","_links":{"self":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/comments/89943420"},"html":{"href":"https://github.com/shelljs/shelljs/pull/590#discussion_r89943420"},"pull_request":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/590"}}},"pull_request":{"url":"https://api.github.com/repos/shelljs/shelljs/pulls/590","id":95423945,"html_url":"https://github.com/shelljs/shelljs/pull/590","diff_url":"https://github.com/shelljs/shelljs/pull/590.diff","patch_url":"https://github.com/shelljs/shelljs/pull/590.patch","issue_url":"https://api.github.com/repos/shelljs/shelljs/issues/590","number":590,"state":"open","locked":false,"title":"Add \"-n\" option to echo","user":{"login":"freitagbr","id":5988055,"avatar_url":"https://avatars.githubusercontent.com/u/5988055?v=3","gravatar_id":"","url":"https://api.github.com/users/freitagbr","html_url":"https://github.com/freitagbr","followers_url":"https://api.github.com/users/freitagbr/followers","following_url":"https://api.github.com/users/freitagbr/following{/other_user}","gists_url":"https://api.github.com/users/freitagbr/gists{/gist_id}","starred_url":"https://api.github.com/users/freitagbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freitagbr/subscriptions","organizations_url":"https://api.github.com/users/freitagbr/orgs","repos_url":"https://api.github.com/users/freitagbr/repos","events_url":"https://api.github.com/users/freitagbr/events{/privacy}","received_events_url":"https://api.github.com/users/freitagbr/received_events","type":"User","site_admin":false},"body":"Fixes #559 ","created_at":"2016-11-28T00:31:44Z","updated_at":"2016-11-29T05:28:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49ec9c3fc9311ebec7ebebc3df5ca293d07b1cef","assignee":{"login":"nfischer","id":5801521,"avatar_url":"https://avatars.githubusercontent.com/u/5801521?v=3","gravatar_id":"","url":"https://api.github.com/users/nfischer","html_url":"https://github.com/nfischer","followers_url":"https://api.github.com/users/nfischer/followers","following_url":"https://api.github.com/users/nfischer/following{/other_user}","gists_url":"https://api.github.com/users/nfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/nfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfischer/subscriptions","organizations_url":"https://api.github.com/users/nfischer/orgs","repos_url":"https://api.github.com/users/nfischer/repos","events_url":"https://api.github.com/users/nfischer/events{/privacy}","received_events_url":"https://api.github.com/users/nfischer/received_events","type":"User","site_admin":false},"assignees":[{"login":"nfischer","id":5801521,"avatar_url":"https://avatars.githubusercontent.com/u/5801521?v=3","gravatar_id":"","url":"https://api.github.com/users/nfischer","html_url":"https://github.com/nfischer","followers_url":"https://api.github.com/users/nfischer/followers","following_url":"https://api.github.com/users/nfischer/following{/other_user}","gists_url":"https://api.github.com/users/nfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/nfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfischer/subscriptions","organizations_url":"https://api.github.com/users/nfischer/orgs","repos_url":"https://api.github.com/users/nfischer/repos","events_url":"https://api.github.com/users/nfischer/events{/privacy}","received_events_url":"https://api.github.com/users/nfischer/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/shelljs/shelljs/pulls/590/commits","review_comments_url":"https://api.github.com/repos/shelljs/shelljs/pulls/590/comments","review_comment_url":"https://api.github.com/repos/shelljs/shelljs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shelljs/shelljs/issues/590/comments","statuses_url":"https://api.github.com/repos/shelljs/shelljs/statuses/4f4b422740a678a0c9e8ccaeb2c447c1c9b291e9","head":{"label":"shelljs:echo-stdout","ref":"echo-stdout","sha":"4f4b422740a678a0c9e8ccaeb2c447c1c9b291e9","user":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"repo":{"id":3604157,"name":"shelljs","full_name":"shelljs/shelljs","owner":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shelljs/shelljs","description":"Portable Unix shell commands for Node.js","fork":false,"url":"https://api.github.com/repos/shelljs/shelljs","forks_url":"https://api.github.com/repos/shelljs/shelljs/forks","keys_url":"https://api.github.com/repos/shelljs/shelljs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shelljs/shelljs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shelljs/shelljs/teams","hooks_url":"https://api.github.com/repos/shelljs/shelljs/hooks","issue_events_url":"https://api.github.com/repos/shelljs/shelljs/issues/events{/number}","events_url":"https://api.github.com/repos/shelljs/shelljs/events","assignees_url":"https://api.github.com/repos/shelljs/shelljs/assignees{/user}","branches_url":"https://api.github.com/repos/shelljs/shelljs/branches{/branch}","tags_url":"https://api.github.com/repos/shelljs/shelljs/tags","blobs_url":"https://api.github.com/repos/shelljs/shelljs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shelljs/shelljs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shelljs/shelljs/git/refs{/sha}","trees_url":"https://api.github.com/repos/shelljs/shelljs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shelljs/shelljs/statuses/{sha}","languages_url":"https://api.github.com/repos/shelljs/shelljs/languages","stargazers_url":"https://api.github.com/repos/shelljs/shelljs/stargazers","contributors_url":"https://api.github.com/repos/shelljs/shelljs/contributors","subscribers_url":"https://api.github.com/repos/shelljs/shelljs/subscribers","subscription_url":"https://api.github.com/repos/shelljs/shelljs/subscription","commits_url":"https://api.github.com/repos/shelljs/shelljs/commits{/sha}","git_commits_url":"https://api.github.com/repos/shelljs/shelljs/git/commits{/sha}","comments_url":"https://api.github.com/repos/shelljs/shelljs/comments{/number}","issue_comment_url":"https://api.github.com/repos/shelljs/shelljs/issues/comments{/number}","contents_url":"https://api.github.com/repos/shelljs/shelljs/contents/{+path}","compare_url":"https://api.github.com/repos/shelljs/shelljs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shelljs/shelljs/merges","archive_url":"https://api.github.com/repos/shelljs/shelljs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shelljs/shelljs/downloads","issues_url":"https://api.github.com/repos/shelljs/shelljs/issues{/number}","pulls_url":"https://api.github.com/repos/shelljs/shelljs/pulls{/number}","milestones_url":"https://api.github.com/repos/shelljs/shelljs/milestones{/number}","notifications_url":"https://api.github.com/repos/shelljs/shelljs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shelljs/shelljs/labels{/name}","releases_url":"https://api.github.com/repos/shelljs/shelljs/releases{/id}","deployments_url":"https://api.github.com/repos/shelljs/shelljs/deployments","created_at":"2012-03-02T17:04:47Z","updated_at":"2016-11-28T20:04:26Z","pushed_at":"2016-11-29T05:27:55Z","git_url":"git://github.com/shelljs/shelljs.git","ssh_url":"git@github.com:shelljs/shelljs.git","clone_url":"https://github.com/shelljs/shelljs.git","svn_url":"https://github.com/shelljs/shelljs","homepage":"shelljs.org","size":1215,"stargazers_count":4985,"watchers_count":4985,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":315,"mirror_url":null,"open_issues_count":64,"forks":315,"open_issues":64,"watchers":4985,"default_branch":"master"}},"base":{"label":"shelljs:dev","ref":"dev","sha":"23ef7eb68d9c4f72170071a91ec4327e379f81bf","user":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"repo":{"id":3604157,"name":"shelljs","full_name":"shelljs/shelljs","owner":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shelljs/shelljs","description":"Portable Unix shell commands for Node.js","fork":false,"url":"https://api.github.com/repos/shelljs/shelljs","forks_url":"https://api.github.com/repos/shelljs/shelljs/forks","keys_url":"https://api.github.com/repos/shelljs/shelljs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shelljs/shelljs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shelljs/shelljs/teams","hooks_url":"https://api.github.com/repos/shelljs/shelljs/hooks","issue_events_url":"https://api.github.com/repos/shelljs/shelljs/issues/events{/number}","events_url":"https://api.github.com/repos/shelljs/shelljs/events","assignees_url":"https://api.github.com/repos/shelljs/shelljs/assignees{/user}","branches_url":"https://api.github.com/repos/shelljs/shelljs/branches{/branch}","tags_url":"https://api.github.com/repos/shelljs/shelljs/tags","blobs_url":"https://api.github.com/repos/shelljs/shelljs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shelljs/shelljs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shelljs/shelljs/git/refs{/sha}","trees_url":"https://api.github.com/repos/shelljs/shelljs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shelljs/shelljs/statuses/{sha}","languages_url":"https://api.github.com/repos/shelljs/shelljs/languages","stargazers_url":"https://api.github.com/repos/shelljs/shelljs/stargazers","contributors_url":"https://api.github.com/repos/shelljs/shelljs/contributors","subscribers_url":"https://api.github.com/repos/shelljs/shelljs/subscribers","subscription_url":"https://api.github.com/repos/shelljs/shelljs/subscription","commits_url":"https://api.github.com/repos/shelljs/shelljs/commits{/sha}","git_commits_url":"https://api.github.com/repos/shelljs/shelljs/git/commits{/sha}","comments_url":"https://api.github.com/repos/shelljs/shelljs/comments{/number}","issue_comment_url":"https://api.github.com/repos/shelljs/shelljs/issues/comments{/number}","contents_url":"https://api.github.com/repos/shelljs/shelljs/contents/{+path}","compare_url":"https://api.github.com/repos/shelljs/shelljs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shelljs/shelljs/merges","archive_url":"https://api.github.com/repos/shelljs/shelljs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shelljs/shelljs/downloads","issues_url":"https://api.github.com/repos/shelljs/shelljs/issues{/number}","pulls_url":"https://api.github.com/repos/shelljs/shelljs/pulls{/number}","milestones_url":"https://api.github.com/repos/shelljs/shelljs/milestones{/number}","notifications_url":"https://api.github.com/repos/shelljs/shelljs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shelljs/shelljs/labels{/name}","releases_url":"https://api.github.com/repos/shelljs/shelljs/releases{/id}","deployments_url":"https://api.github.com/repos/shelljs/shelljs/deployments","created_at":"2012-03-02T17:04:47Z","updated_at":"2016-11-28T20:04:26Z","pushed_at":"2016-11-29T05:27:55Z","git_url":"git://github.com/shelljs/shelljs.git","ssh_url":"git@github.com:shelljs/shelljs.git","clone_url":"https://github.com/shelljs/shelljs.git","svn_url":"https://github.com/shelljs/shelljs","homepage":"shelljs.org","size":1215,"stargazers_count":4985,"watchers_count":4985,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":315,"mirror_url":null,"open_issues_count":64,"forks":315,"open_issues":64,"watchers":4985,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/590"},"html":{"href":"https://github.com/shelljs/shelljs/pull/590"},"issue":{"href":"https://api.github.com/repos/shelljs/shelljs/issues/590"},"comments":{"href":"https://api.github.com/repos/shelljs/shelljs/issues/590/comments"},"review_comments":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/590/comments"},"review_comment":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/590/commits"},"statuses":{"href":"https://api.github.com/repos/shelljs/shelljs/statuses/4f4b422740a678a0c9e8ccaeb2c447c1c9b291e9"}}}}
{"actor":{"display_login":"freitagbr"}}