Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support multiple arguments #19

Closed
dzuelke opened this issue Oct 4, 2015 · 4 comments
Closed

Does not support multiple arguments #19

dzuelke opened this issue Oct 4, 2015 · 4 comments

Comments

@dzuelke
Copy link
Contributor

dzuelke commented Oct 4, 2015

Given multiple arguments, which is supposed to print the location of each match, and return the number of errors as the exit code.

For example:

$ which ls mkdir
/bin/ls
/bin/mkdir
$ echo $?
0
$ which doesnotexist mkdir
/bin/mkdir
$ echo $?
1

However, this package doesn't behave that way:

$ node_modules/.bin/which ls mkdir
/bin/ls
$ echo $?
0
$ node_modules/.bin/which doesnotexist mkdir
not found: doesnotexist
$ echo $?
127
@dzuelke
Copy link
Contributor Author

dzuelke commented Oct 4, 2015

(and then with .node_modules/bin/ on $PATH, Bash stuff that uses which just magically blows up)

@isaacs
Copy link
Contributor

isaacs commented Oct 5, 2015

Patch welcome to make it behave identical to which(1)!

@dzuelke
Copy link
Contributor Author

dzuelke commented Oct 7, 2015

Fine... see #20 !

@isaacs
Copy link
Contributor

isaacs commented Oct 7, 2015

Landed on 1.2.0

@isaacs isaacs closed this as completed Oct 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants