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

Improve shebang #17

Merged
merged 1 commit into from
Oct 6, 2023
Merged

Improve shebang #17

merged 1 commit into from
Oct 6, 2023

Conversation

Freed-Wu
Copy link
Contributor

Original shebang detect is not robust. Even #!/usr/bin/env -S sh -c 'echo jq $0' will still be recognized to jq.
Now this code is referenced from vim's code which only recognize #!/the/path/jq, #!/the/path/env jq #!/the/path/env -S jq XXX, etc.

@Freed-Wu
Copy link
Contributor Author

@vito-c Hey, if you are too busy to review this PR, can you add me to collaborators?

@vito-c
Copy link
Owner

vito-c commented Jul 23, 2023

I will review it this week

@vito-c
Copy link
Owner

vito-c commented Jul 23, 2023

In the mean time can you provide a couple more examples of shebangs you want to work please.

autoload/jq.vim Show resolved Hide resolved
@Freed-Wu
Copy link
Contributor Author

All of the code you referenced is no longer in the master branch. It was moved to a function.

This code is copied from vim < 9.0, after vim 9.0, they use vim script 9 to refactor the code. I think we should keep it work for some older vim, which may be better?

Any other questions about this PR?

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Oct 5, 2023

@vito-c, Hey, any other questions about this PR?

If you are busy to review the PR, can you add me to collaborators?

@vito-c vito-c merged commit a6d49bd into vito-c:master Oct 6, 2023
@baodrate baodrate mentioned this pull request Oct 11, 2023
@vito-c vito-c mentioned this pull request Oct 17, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants