{"action":"closed","issue":{"url":"https://api.github.com/repos/npm/node-which/issues/19","labels_url":"https://api.github.com/repos/npm/node-which/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/npm/node-which/issues/19/comments","events_url":"https://api.github.com/repos/npm/node-which/issues/19/events","html_url":"https://github.com/npm/node-which/issues/19","id":109698817,"number":19,"title":"Does not support multiple arguments","user":{"login":"dzuelke","id":27900,"avatar_url":"https://avatars.githubusercontent.com/u/27900?v=3","gravatar_id":"","url":"https://api.github.com/users/dzuelke","html_url":"https://github.com/dzuelke","followers_url":"https://api.github.com/users/dzuelke/followers","following_url":"https://api.github.com/users/dzuelke/following{/other_user}","gists_url":"https://api.github.com/users/dzuelke/gists{/gist_id}","starred_url":"https://api.github.com/users/dzuelke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzuelke/subscriptions","organizations_url":"https://api.github.com/users/dzuelke/orgs","repos_url":"https://api.github.com/users/dzuelke/repos","events_url":"https://api.github.com/users/dzuelke/events{/privacy}","received_events_url":"https://api.github.com/users/dzuelke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-04T19:16:42Z","updated_at":"2015-10-07T20:12:32Z","closed_at":"2015-10-07T20:12:32Z","body":"Given multiple arguments, `which` is supposed to print the location of each match, and return the number of errors as the exit code.\r\n\r\nFor example:\r\n\r\n```\r\n$ which ls mkdir\r\n/bin/ls\r\n/bin/mkdir\r\n$ echo $?\r\n0\r\n$ which doesnotexist mkdir\r\n/bin/mkdir\r\n$ echo $?\r\n1\r\n```\r\n\r\nHowever, this package doesn't behave that way:\r\n\r\n```\r\n$ node_modules/.bin/which ls mkdir\r\n/bin/ls\r\n$ echo $?\r\n0\r\n$ node_modules/.bin/which doesnotexist mkdir\r\nnot found: doesnotexist\r\n$ echo $?\r\n127\r\n```\r\n"}}