Skip to content

allow env -S in shebang for syntax detection - #4280

Open
kuvaldini wants to merge 3 commits into
micro-editor:masterfrom
kuvaldini:fish-env-S-flag
Open

kuvaldini wants to merge 3 commits into
micro-editor:masterfrom
kuvaldini:fish-env-S-flag

Conversation

@kuvaldini

Copy link
Copy Markdown

example

#!/bin/env -S fish --no-config

-S requires to split arguments properly, whithout -S command not found 'fish --no-config'

kuvaldini added 3 commits October 23, 2026 00:12
allow -S flag: /usr/bin/env -S fish
to pass arguments to fish normally
sd -F '(env +)?' '(env +((-S|--split-string=?[^\\\\s]*) +)?)?' (rg 'header:.*env' runtime/syntax/ --files-with-matches)
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