From 637023e86fda2005a98c022816e15ee6545f86ee Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Thu, 13 Jun 2024 12:19:22 -0700 Subject: [PATCH] Test bare bash path in shebang on windows (#2144) --- tests/lib.rs | 2 ++ tests/windows.rs | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/windows.rs 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(); +}