Skip to content

feat: shfmt detects shell type from inline '# shellcheck shell=...' #1151

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

Open
gzm55 opened this issue Apr 9, 2025 · 2 comments
Open

feat: shfmt detects shell type from inline '# shellcheck shell=...' #1151

gzm55 opened this issue Apr 9, 2025 · 2 comments

Comments

@gzm55
Copy link

gzm55 commented Apr 9, 2025

some source-able shell scripts use # shellcheck shell=... to select script dialect instead of a shebang. can we also support this anotation?

@mvdan
Copy link
Owner

mvdan commented Apr 9, 2025

Where is this documented?

@gzm55
Copy link
Author

gzm55 commented Apr 9, 2025

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

No branches or pull requests

2 participants