Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Handle files with first line shell opts. #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ladar
Copy link

@ladar ladar commented Dec 14, 2021

Description of the Change

The shell script grammar should be applied to:

#!/bin/bash

and

#!/bin/bash -eu

But with the current release, the latter isn't being matched because the regex requires a new line after sh or bash. This regex tweak fixes that oversight.

This should match:
```
#!/bin/bash
```
and
```
#!/bin/bash -eu
```
Currently the latter isn't being matched because the regex requires a new line after `sh` or `bash`.
@ladar
Copy link
Author

ladar commented Dec 19, 2021

@icecream17 thank you for reviewing. It's always nice to see another Texan on GitHub.

@sadick254 can we get this regex tweak merged before the next release? There hasn't been any activity in this repo since April, so reaching since you appear to have commit access. Should I increment the package.json before you merge, or will you handle that?

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

Successfully merging this pull request may close these issues.

2 participants