FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Handle files with first line shell opts. by ladar · Pull Request #171 · atom/language-shellscript · GitHub

This repository was archived by the owner on Dec 15, 2022. It is now read-only.
/ language-shellscript Public archive

Handle files with first line shell opts. - #171

Open
ladar wants to merge 1 commit into
atom:masterfrom
ladar:fix-first-line-shell-regex
Open

ladar wants to merge 1 commit into
atom:masterfrom
ladar:fix-first-line-shell-regex

Conversation

ladar commented Dec 14, 2021 •
edited
Loading

Copy link
Copy Markdown

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 commented Dec 19, 2021

Copy link
Copy Markdown
Author

@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?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL