Skip to content

Commit

Permalink
Test bare bash path in shebang on windows (#2144)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jun 13, 2024
1 parent 4f16428 commit 637023e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ mod timestamps;
mod undefined_variables;
mod unexport;
mod unstable;
#[cfg(windows)]
mod windows;
#[cfg(target_family = "windows")]
mod windows_shell;
mod working_directory;
Expand Down
15 changes: 15 additions & 0 deletions tests/windows.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use super::*;

#[test]
fn bare_bash_in_shebang() {
Test::new()
.justfile(
"
default:
#!bash
echo FOO
",
)
.stdout("FOO\n")
.run();
}

0 comments on commit 637023e

Please sign in to comment.