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

shebang detection fails if it starts with #!/usr/bin/env #54

Open
cb1kenobi opened this issue May 24, 2017 · 0 comments
Open

shebang detection fails if it starts with #!/usr/bin/env #54

cb1kenobi opened this issue May 24, 2017 · 0 comments

Comments

@cb1kenobi
Copy link

When spawning mocha directly from node_modules/.bin/mocha, spawn-wrap will correctly detect it as a file containing a shebang. The shebang is #!/usr/bin/env node. The problem is spawn-wrap only checks the first segment to see if it's node.

/usr/bin/env is sort of a special case where we want to skip the first segment and test the second segment instead. Not sure of a good way of doing this without hardcoding it.

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

1 participant