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

Do not include shebang lines on Windows #1417

Merged
merged 4 commits into from
Nov 19, 2022
Merged

Conversation

casey
Copy link
Owner

@casey casey commented Nov 19, 2022

No description provided.

@casey casey merged commit e27e12a into master Nov 19, 2022
@casey casey deleted the omit-shebang-on-windows branch November 19, 2022 20:38
@@ -47,7 +47,7 @@ impl<'line> Shebang<'line> {
}

pub(crate) fn include_shebang_line(&self) -> bool {
!matches!(self.interpreter_filename(), "cmd" | "cmd.exe")
!cfg!(windows) && !matches!(self.interpreter_filename(), "cmd" | "cmd.exe")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? It seems to be saying that the build is for Windows and the interpreter filename is cmd. Shouldn't that "and" be an "or"?

I wasn't able to check this as I'm not entirely sure what justfile syntax would set interpreter_filename.

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.

2 participants