diff --git a/tests/lib.rs b/tests/lib.rs index 18da62d..42b3aff 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -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; diff --git a/tests/windows.rs b/tests/windows.rs new file mode 100644 index 0000000..a839b30 --- /dev/null +++ b/tests/windows.rs @@ -0,0 +1,15 @@ +use super::*; + +#[test] +fn bare_bash_in_shebang() { + Test::new() + .justfile( + " + default: + #!bash + echo FOO + ", + ) + .stdout("FOO\n") + .run(); +}