Skip to content

Allow flags in valid shebangs - #122

Merged
homebysix merged 1 commit into
mainfrom
allow-shebang-flags
Sep 22, 2026
Merged

homebysix merged 1 commit into
mainfrom
allow-shebang-flags

Conversation

@homebysix

Copy link
Copy Markdown
Owner

Allow scripts to pass interpreter flags in shebangs while continuing to require an explicitly allowed interpreter path. This supports shebangs such as #!/bin/zsh --no-rcs, #!/bin/zsh -x, and #!/bin/zsh -e without allowing /usr/bin/env by default. Exact entries supplied through --valid-shebangs continue to work unchanged.

@homebysix
homebysix merged commit b653e9a into main Sep 22, 2026
8 checks passed
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.

1 participant