Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Match shebang with args #34

Open
folliehiyuki opened this issue Oct 18, 2021 · 3 comments
Open

Match shebang with args #34

folliehiyuki opened this issue Oct 18, 2021 · 3 comments

Comments

@folliehiyuki
Copy link

Right now filetype.nvim can detect, for example #!/bin/sh but not #!/bin/sh -e which is quite common. Extending the analyze_shebang() function to support arguments would be nice.

@mrjones2014
Copy link

#!/usr/bin/env bash is also very common, for example

@folliehiyuki
Copy link
Author

@mrjones2014 /usr/bin/env bash is already covered (you can check the regex in the source code). /usr/bin/env bash -e is not though.

@uga-rosa
Copy link
Contributor

You should be able to remove the $ from the regular expression.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants