Skip to content

Conversation

@cspotcode
Copy link

Discussed here: #2260 (comment)

I did my best to copy coding conventions from windows-shell, but I'm not a rust expert.

Worth noting that, although this does solve my use-case -- pointing to a different sh on Windows than Linux -- it doesn't let you [script('linux-shell')] and [windows-script('windows-shell')]. If you're specifying shell inline within the attribute, you can't specify a different option for Windows and Linux. For that, you're still better off using #!{{SHEBANG}} and setting that variable conditionally.

Tests are failing locally for me, but I suspect that's because my bash.exe is WSL2, but tests try to use it as a Windows bash shell. I'm opening this PR to get some initial feedback; don't want to waste time fixing my local testing issue if this PR can't be merged for other reasons.

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