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

[ShellScript] Add support for dash shebang #2819

Merged
merged 2 commits into from
Aug 18, 2021
Merged

[ShellScript] Add support for dash shebang #2819

merged 2 commits into from
Aug 18, 2021

Conversation

mohamed-abdelnour
Copy link
Contributor

This is a patch to Bash.sublime-syntax that adds support for shebangs explicitly calling for dash, e.g., #!/usr/bin/env dash. Proposed in sharkdp/bat#1654.

I have not modified the Bash syntax test file since the dash shell supports less features than Bash.

keith-hall
keith-hall previously approved these changes May 15, 2021
@mohamed-abdelnour mohamed-abdelnour changed the title [dash] Add support for dash shebang [ShellScript] Add support for dash shebang May 15, 2021
rwols
rwols previously approved these changes May 15, 2021
@deathaxe
Copy link
Collaborator

Please fix column position of trailing comment, so all trailing comments are located at the same column.

@deathaxe
Copy link
Collaborator

Thanks

@mohamed-abdelnour
Copy link
Contributor Author

You're welcome!

@deathaxe
Copy link
Collaborator

Please note. I've synced this PR with #2760 by adding DASH there, too. It is to avoid it being lost due to merge conflicts etc.

@mohamed-abdelnour
Copy link
Contributor Author

Sounds good. Shall we close this PR, then?

@deathaxe
Copy link
Collaborator

Not neccessarily. It's not yet for sure the other PR will ever be accepted.

@keith-hall keith-hall dismissed stale reviews from rwols and themself via 7067cc9 August 17, 2021 07:53
@jfcherng
Copy link
Collaborator

jfcherng commented Aug 18, 2021

Since the other PR is marked as significant (which could take some time to be merged), I suppose this PR can be merged first.

@deathaxe deathaxe merged commit 4a5da16 into sublimehq:master Aug 18, 2021
@mohamed-abdelnour mohamed-abdelnour deleted the support-dash-syntax branch August 19, 2021 11:42
mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 2022
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.

5 participants